{
    "mode": "perldoc",
    "parameter": "IO::Lines",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/IO%3A%3ALines/json",
    "generated": "2026-06-10T16:25:55Z",
    "synopsis": "use IO::Lines;\n### See IO::ScalarArray for details",
    "sections": {
        "NAME": {
            "content": "IO::Lines - IO:: interface for reading/writing an array of lines\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use IO::Lines;\n\n### See IO::ScalarArray for details\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This class implements objects which behave just like FileHandle (or IO::Handle) objects, except\nthat you may use them to write to (or read from) an array of lines. They can be tiehandle'd as\nwell.\n\nThis is a subclass of IO::ScalarArray in which the underlying array has its data stored in a\nline-oriented-format: that is, every element ends in a \"\\n\", with the possible exception of the\nfinal element. This makes \"getline()\" *much* more efficient; if you plan to do line-oriented\nreading/printing, you want this class.\n\nThe \"print()\" method will enforce this rule, so you can print arbitrary data to the line-array:\nit will break the data at newlines appropriately.\n\nSee IO::ScalarArray for full usage and warnings.\n",
            "subsections": []
        },
        "VERSION": {
            "content": "$Id: Lines.pm,v 1.3 2005/02/10 21:21:53 dfs Exp $\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "",
            "subsections": [
                {
                    "name": "Primary Maintainer",
                    "content": "Dianne Skoll (dfs@roaringpenguin.com).\n"
                },
                {
                    "name": "Principal author",
                    "content": "Eryq (eryq@zeegee.com). President, ZeeGee Software Inc (http://www.zeegee.com).\n"
                },
                {
                    "name": "Other contributors",
                    "content": "Thanks to the following individuals for their invaluable contributions (if I've forgotten or\nmisspelled your name, please email me!):\n\n*Morris M. Siegel,* for his $/ patch and the new \"getlines()\".\n\n*Doug Wilson,* for the IO::Handle inheritance and automatic tie-ing.\n"
                }
            ]
        }
    },
    "summary": "IO::Lines - IO:: interface for reading/writing an array of lines",
    "flags": [],
    "examples": [],
    "see_also": []
}