{
    "mode": "perldoc",
    "parameter": "IO::InnerFile",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/IO%3A%3AInnerFile/json",
    "generated": "2026-06-12T06:42:27Z",
    "synopsis": "### Read a subset of a file:\n$inner = IO::InnerFile->new($fh, $start, $length);\nwhile (<$inner>) {\n...\n}",
    "sections": {
        "NAME": {
            "content": "IO::InnerFile - define a file inside another file\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "### Read a subset of a file:\n$inner = IO::InnerFile->new($fh, $start, $length);\nwhile (<$inner>) {\n...\n}\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "If you have a filehandle that can seek() and tell(), then you can open an IO::InnerFile on a\nrange of the underlying file.\n",
            "subsections": []
        },
        "PUBLIC INTERFACE": {
            "content": "new FILEHANDLE, [START, [LENGTH]]\n*Class method, constructor.* Create a new inner-file opened on the given FILEHANDLE, from\nbytes START to START+LENGTH. Both START and LENGTH default to 0; negative values are\nsilently coerced to zero.\n\nNote that FILEHANDLE must be able to seek() and tell(), in addition to whatever other\nmethods you may desire for reading it.\n\nsetlength LENGTH\ngetlength\naddlength NBYTES\n*Instance methods.* Get/set the virtual length of the inner file.\n\nsetstart START\ngetstart\naddstart NBYTES\n*Instance methods.* Get/set the virtual start position of the inner file.\n\nbinmode\nclose\nflush\ngetc\ngetline\nprint LIST\nprintf LIST\nread BUF, NBYTES\nreadline\nseek OFFFSET, WHENCE\ntell\nwrite ARGS...\n*Instance methods.* Standard filehandle methods.\n",
            "subsections": []
        },
        "VERSION": {
            "content": "$Id: InnerFile.pm,v 1.4 2005/02/10 21:21:53 dfs Exp $\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Original version by Doru Petrescu (pdoru@kappa.ro).\n\nDocumentation and by Eryq (eryq@zeegee.com).\n\nCurrently maintained by Dianne Skoll (dfs@roaringpenguin.com).\n",
            "subsections": []
        }
    },
    "summary": "IO::InnerFile - define a file inside another file",
    "flags": [],
    "examples": [],
    "see_also": []
}