IO::Lines − IO:: interface for reading/writing an array of lines


    use IO::Lines;
    ### See IO::ScalarArray for details


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.

This is a subclass of IO::ScalarArray in which the underlying array has its data stored in a line-oriented-format: that is, every element ends in a "\n", with the possible exception of the final element. This makes "getline()" much more efficient; if you plan to do line-oriented reading/printing, you want this class.

The "print()" method will enforce this rule, so you can print arbitrary data to the line-array: it will break the data at newlines appropriately.

See IO::ScalarArray for full usage and warnings.


$Id:,v 1.3 2005/02/10 21:21:53 dfs Exp $


Primary Maintainer
David F. Skoll (

Principal author
Eryq ( President, ZeeGee Software Inc (

Other contributors
Thanks to the following individuals for their invaluable contributions (if I’ve forgotten or misspelled your name, please email me!):

Morris M. Siegel, for his $/ patch and the new "getlines()".

Doug Wilson, for the IO::Handle inheritance and automatic tie-ing.

More Linux Commands

putwin(3ncurses) - miscellaneous curses utility routines....
The unctrl routine returns a character string which is a printable representation of the character c, ignoring attributes. Control characters are displayed in t

csinhl(3) - complex hyperbolic sine - Linux manual page.....
The complex hyperbolic sine function is defined as: csinh(z) = (exp(z)-exp(-z))/2 VERSIONS These functions first appeared in glibc in version 2.1. CONFORMING TO

XpEndPage(3x) - Indicates the end of a print page. (ManPage)
XpEndPage signals the end of a print page, and causes window to be unmapped. All resulting page data is assembled and combined with data previously sent by XpPu

set_menu_grey(3menu) - color and attribute control for menus
The function set_menu_fore sets the foreground attribute of menu. This is the highlight used for selected menu items. menu_fore returns the foreground attribute

audit_delete_rule_data(3) - Delete audit rule (Man Page)....
audit_delete_rule_data is used to delete rules that are currently loaded in the kernel. To delete a rule, you must set up the rules identical to the one being d

fabs(3) - absolute value of floating-point number (ManPage)
These functions return the absolute value of the floating-point number x. RETURN VALUE These functions return the absolute value of x. If x is a NaN, a NaN is r

wcstok(3) - split wide-character string into tokens.........
The wcstok() function is the wide-character equivalent of the strtok(3) function, with an added argument to make it multithread-safe. It can be used to split a

perl5124delta(1) what is new for perl v5.12.4 (Man Page)....
This document describes differences between the 5.12.3 release and the 5.12.4 release. If you are upgrading from an earlier release such as 5.12.2, first read p

gnutls_x509_crt_get_key_id(3) - API function (Man Page).....
gnutls_x509_crt_get_key_id.3 - This function will return a unique ID the depends on the public key parameters. This ID can be used in checking whether a certifi

XSetModifierMapping(3) - manipulate keyboard encoding and ke
The XChangeKeyboardMapping function defines the symbols for the specified number of KeyCodes starting with first_keycode. The symbols for KeyCodes outside this

y1l(3) - Bessel functions of the second kind (Man Page).....
The y0() and y1() functions return Bessel functions of x of the second kind of orders 0 and 1, respectively. The yn() function returns the Bessel function of x

gnutls_rsa_params_export_pkcs1(3) - API function (Man Page)
This function will export the given RSA parameters to a PKCS1 RSAPublicKey structure. If the buffer provided is not long enough to hold the output, then GNUTLS_

We can't live, work or learn in freedom unless the software we use is free.