{
    "content": [
        {
            "type": "text",
            "text": "# IO::InnerFile (perldoc)\n\n## NAME\n\nIO::InnerFile - define a file inside another file\n\n## SYNOPSIS\n\n### Read a subset of a file:\n$inner = IO::InnerFile->new($fh, $start, $length);\nwhile (<$inner>) {\n...\n}\n\n## DESCRIPTION\n\nIf you have a filehandle that can seek() and tell(), then you can open an IO::InnerFile on a\nrange of the underlying file.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **PUBLIC INTERFACE**\n- **VERSION**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "IO::InnerFile",
        "section": "",
        "mode": "perldoc",
        "summary": "IO::InnerFile - define a file inside another file",
        "synopsis": "### Read a subset of a file:\n$inner = IO::InnerFile->new($fh, $start, $length);\nwhile (<$inner>) {\n...\n}",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "PUBLIC INTERFACE",
                "lines": 32,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 6,
                "subsections": []
            }
        ],
        "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": []
            }
        }
    }
}