home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 May
/
Chip_2000-05_cd1.bin
/
zkuste
/
Perl
/
ActivePerl-5.6.0.613.msi
/
䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥
/
_bc3d7798089d1976ad018c850bc8e0c9
< prev
next >
Wrap
Text File
|
2000-03-23
|
3KB
|
83 lines
<HTML>
<HEAD>
<TITLE>IO::Lines - IO:: interface for reading/writing an array of lines</TITLE>
<LINK REL="stylesheet" HREF="../../../Active.css" TYPE="text/css">
<LINK REV="made" HREF="mailto:">
</HEAD>
<BODY>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> IO::Lines - IO:: interface for reading/writing an array of lines</P></STRONG>
</TD></TR>
</TABLE>
<A NAME="__index__"></A>
<!-- INDEX BEGIN -->
<UL>
<LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
<LI><A HREF="#synopsis">SYNOPSIS</A></LI>
<LI><A HREF="#description">DESCRIPTION</A></LI>
<LI><A HREF="#version">VERSION</A></LI>
<LI><A HREF="#author">AUTHOR</A></LI>
</UL>
<!-- INDEX END -->
<HR>
<P>
<H1><A NAME="name">NAME</A></H1>
<P>IO::Lines - IO:: interface for reading/writing an array of lines</P>
<P>
<HR>
<H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
<UL>
<LI>Linux</LI>
<LI>Solaris</LI>
<LI>Windows</LI>
</UL>
<HR>
<H1><A NAME="synopsis">SYNOPSIS</A></H1>
<PRE>
use IO::Lines;
</PRE>
<PRE>
# See IO::ScalarArray for details</PRE>
<P>
<HR>
<H1><A NAME="description">DESCRIPTION</A></H1>
<P>This class implements objects which behave just like FileHandle
(or IO::Handle) objects, except that you may use them to write to
(or read from) an array of lines. They can be tiehandle'd as well.</P>
<P>This is a subclass of <A HREF="../../../site/lib/IO/ScalarArray.html">the IO::ScalarArray manpage</A> in which the underlying
array has its data stored in a line-oriented-format: that is,
every element ends in a <CODE>"\n"</CODE>, with the possible exception of the
final element. This makes <CODE>getline()</CODE> <EM>much</EM> more efficient;
if you plan to do line-oriented reading/printing, you want this class.</P>
<P>The <A HREF="../../../lib/Pod/perlfunc.html#item_print"><CODE>print()</CODE></A> method will enforce this rule, so you can print
arbitrary data to the line-array: it will break the data at
newlines appropriately.</P>
<P>See <A HREF="../../../site/lib/IO/ScalarArray.html">the IO::ScalarArray manpage</A> for full usage.</P>
<P>
<HR>
<H1><A NAME="version">VERSION</A></H1>
<P>$Id: Lines.pm,v 1.106 1998/12/16 02:00:04 eryq Exp $</P>
<P>
<HR>
<H1><A NAME="author">AUTHOR</A></H1>
<P>Eryq (<EM><A HREF="mailto:eryq@zeegee.com">eryq@zeegee.com</A></EM>).
President, ZeeGee Software Inc (<EM><A HREF="http://www.zeegee.com">http://www.zeegee.com</A></EM>).</P>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> IO::Lines - IO:: interface for reading/writing an array of lines</P></STRONG>
</TD></TR>
</TABLE>
</BODY>
</HTML>