{
    "content": [
        {
            "type": "text",
            "text": "# IO::Uncompress::Gunzip (info)\n\n## NAME\n\nIO::Uncompress::Gunzip - Read RFC 1952 files/buffers\n\n## SYNOPSIS\n\nuse IO::Uncompress::Gunzip qw(gunzip $GunzipError) ;\nmy $status = gunzip $input => $output [,OPTS]\nor die \"gunzip failed: $GunzipError\\n\";\nmy $z = IO::Uncompress::Gunzip->new( $input [OPTS] )\nor die \"gunzip failed: $GunzipError\\n\";\n$status = $z->read($buffer)\n$status = $z->read($buffer, $length)\n$status = $z->read($buffer, $length, $offset)\n$line = $z->getline()\n$char = $z->getc()\n$char = $z->ungetc()\n$char = $z->opened()\n$status = $z->inflateSync()\n$data = $z->trailingData()\n$status = $z->nextStream()\n$data = $z->getHeaderInfo()\n$z->tell()\n$z->seek($position, $whence)\n$z->binmode()\n$z->fileno()\n$z->eof()\n$z->close()\n$GunzipError ;\n# IO::File mode\n<$z>\nread($z, $buffer);\nread($z, $buffer, $length);\nread($z, $buffer, $length, $offset);\ntell($z)\nseek($z, $position, $whence)\nbinmode($z)\nfileno($z)\neof($z)\nclose($z)\n\n## DESCRIPTION\n\nThis module provides a Perl interface that allows the reading of\nfiles/buffers that conform to RFC 1952.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **Functional Interface**\n- **Methods**\n- **Importing**\n- **EXAMPLES**\n- **SUPPORT**\n- **SEE ALSO**\n- **AUTHOR**\n- **MODIFICATION HISTORY**\n- **COPYRIGHT AND LICENSE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "IO::Uncompress::Gunzip",
        "section": "",
        "mode": "info",
        "summary": "IO::Uncompress::Gunzip - Read RFC 1952 files/buffers",
        "synopsis": "use IO::Uncompress::Gunzip qw(gunzip $GunzipError) ;\nmy $status = gunzip $input => $output [,OPTS]\nor die \"gunzip failed: $GunzipError\\n\";\nmy $z = IO::Uncompress::Gunzip->new( $input [OPTS] )\nor die \"gunzip failed: $GunzipError\\n\";\n$status = $z->read($buffer)\n$status = $z->read($buffer, $length)\n$status = $z->read($buffer, $length, $offset)\n$line = $z->getline()\n$char = $z->getc()\n$char = $z->ungetc()\n$char = $z->opened()\n$status = $z->inflateSync()\n$data = $z->trailingData()\n$status = $z->nextStream()\n$data = $z->getHeaderInfo()\n$z->tell()\n$z->seek($position, $whence)\n$z->binmode()\n$z->fileno()\n$z->eof()\n$z->close()\n$GunzipError ;\n# IO::File mode\n<$z>\nread($z, $buffer);\nread($z, $buffer, $length);\nread($z, $buffer, $length, $offset);\ntell($z)\nseek($z, $position, $whence)\nbinmode($z)\nfileno($z)\neof($z)\nclose($z)",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [
            "Working with Net::FTP",
            "See IO::Compress::FAQ"
        ],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 43,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "Functional Interface",
                "lines": 403,
                "subsections": []
            },
            {
                "name": "Methods",
                "lines": 237,
                "subsections": []
            },
            {
                "name": "Importing",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SUPPORT",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 27,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "MODIFICATION HISTORY",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT AND LICENSE",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "IO::Uncompress::Gunzip - Read RFC 1952 files/buffers\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use IO::Uncompress::Gunzip qw(gunzip $GunzipError) ;\n\nmy $status = gunzip $input => $output [,OPTS]\nor die \"gunzip failed: $GunzipError\\n\";\n\nmy $z = IO::Uncompress::Gunzip->new( $input [OPTS] )\nor die \"gunzip failed: $GunzipError\\n\";\n\n$status = $z->read($buffer)\n$status = $z->read($buffer, $length)\n$status = $z->read($buffer, $length, $offset)\n$line = $z->getline()\n$char = $z->getc()\n$char = $z->ungetc()\n$char = $z->opened()\n\n$status = $z->inflateSync()\n\n$data = $z->trailingData()\n$status = $z->nextStream()\n$data = $z->getHeaderInfo()\n$z->tell()\n$z->seek($position, $whence)\n$z->binmode()\n$z->fileno()\n$z->eof()\n$z->close()\n\n$GunzipError ;\n\n# IO::File mode\n\n<$z>\nread($z, $buffer);\nread($z, $buffer, $length);\nread($z, $buffer, $length, $offset);\ntell($z)\nseek($z, $position, $whence)\nbinmode($z)\nfileno($z)\neof($z)\nclose($z)\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This module provides a Perl interface that allows the reading of\nfiles/buffers that conform to RFC 1952.\n\nFor writing RFC 1952 files/buffers, see the companion module\nIO::Compress::Gzip.\n",
                "subsections": []
            },
            "Functional Interface": {
                "content": "A top-level function, \"gunzip\", is provided to carry out \"one-shot\"\nuncompression between buffers and/or files. For finer control over the\nuncompression process, see the \"OO Interface\" section.\n\nuse IO::Uncompress::Gunzip qw(gunzip $GunzipError) ;\n\ngunzip $inputfilenameorreference => $outputfilenameorreference [,OPTS]\nor die \"gunzip failed: $GunzipError\\n\";\n\nThe functional interface needs Perl5.005 or better.\n\ngunzip $inputfilenameorreference => $outputfilenameorreference [,\nOPTS]\n\"gunzip\" expects at least two parameters, $inputfilenameorreference\nand $outputfilenameorreference and zero or more optional parameters\n(see \"Optional Parameters\")\n\nThe $inputfilenameorreference parameter\n\nThe parameter, $inputfilenameorreference, is used to define the\nsource of the compressed data.\n\nIt can take one of the following forms:\n\nA filename\nIf the $inputfilenameorreference parameter is a simple scalar,\nit is assumed to be a filename. This file will be opened for\nreading and the input data will be read from it.\n\nA filehandle\nIf the $inputfilenameorreference parameter is a filehandle, the\ninput data will be read from it.  The string '-' can be used as an\nalias for standard input.\n\nA scalar reference\nIf $inputfilenameorreference is a scalar reference, the input\ndata will be read from $$inputfilenameorreference.\n\nAn array reference\nIf $inputfilenameorreference is an array reference, each\nelement in the array must be a filename.\n\nThe input data will be read from each file in turn.\n\nThe complete array will be walked to ensure that it only contains\nvalid filenames before any data is uncompressed.\n\nAn Input FileGlob string\nIf $inputfilenameorreference is a string that is delimited by\nthe characters \"<\" and \">\" \"gunzip\" will assume that it is an\ninput fileglob string. The input is the list of files that match\nthe fileglob.\n\nSee File::GlobMapper for more details.\n\nIf the $inputfilenameorreference parameter is any other type,\n\"undef\" will be returned.\n\nThe $outputfilenameorreference parameter\n\nThe parameter $outputfilenameorreference is used to control the\ndestination of the uncompressed data. This parameter can take one of\nthese forms.\n\nA filename\nIf the $outputfilenameorreference parameter is a simple scalar,\nit is assumed to be a filename.  This file will be opened for\nwriting and the uncompressed data will be written to it.\n\nA filehandle\nIf the $outputfilenameorreference parameter is a filehandle,\nthe uncompressed data will be written to it.  The string '-' can\nbe used as an alias for standard output.\n\nA scalar reference\nIf $outputfilenameorreference is a scalar reference, the\nuncompressed data will be stored in\n$$outputfilenameorreference.\n\nAn Array Reference\nIf $outputfilenameorreference is an array reference, the\nuncompressed data will be pushed onto the array.\n\nAn Output FileGlob\nIf $outputfilenameorreference is a string that is delimited by\nthe characters \"<\" and \">\" \"gunzip\" will assume that it is an\noutput fileglob string. The output is the list of files that match\nthe fileglob.\n\nWhen $outputfilenameorreference is an fileglob string,\n$inputfilenameorreference must also be a fileglob string.\nAnything else is an error.\n\nSee File::GlobMapper for more details.\n\nIf the $outputfilenameorreference parameter is any other type,\n\"undef\" will be returned.\n\nNotes\nWhen $inputfilenameorreference maps to multiple compressed\nfiles/buffers and $outputfilenameorreference is a single\nfile/buffer, after uncompression $outputfilenameorreference will\ncontain a concatenation of all the uncompressed data from each of the\ninput files/buffers.\n\nOptional Parameters\nThe optional parameters for the one-shot function \"gunzip\" are (for the\nmost part) identical to those used with the OO interface defined in the\n\"Constructor Options\" section. The exceptions are listed below\n\n\"AutoClose => 0|1\"\nThis option applies to any input or output data streams to\n\"gunzip\" that are filehandles.\n\nIf \"AutoClose\" is specified, and the value is true, it will result\nin all input and/or output filehandles being closed once \"gunzip\"\nhas completed.\n\nThis parameter defaults to 0.\n\n\"BinModeOut => 0|1\"\nThis option is now a no-op. All files will be written  in binmode.\n\n\"Append => 0|1\"\nThe behaviour of this option is dependent on the type of output\ndata stream.\n\no    A Buffer\n\nIf \"Append\" is enabled, all uncompressed data will be append\nto the end of the output buffer. Otherwise the output buffer\nwill be cleared before any uncompressed data is written to\nit.\n\no    A Filename\n\nIf \"Append\" is enabled, the file will be opened in append\nmode. Otherwise the contents of the file, if any, will be\ntruncated before any uncompressed data is written to it.\n\no    A Filehandle\n\nIf \"Append\" is enabled, the filehandle will be positioned to\nthe end of the file via a call to \"seek\" before any\nuncompressed data is written to it.  Otherwise the file\npointer will not be moved.\n\nWhen \"Append\" is specified, and set to true, it will append all\nuncompressed data to the output data stream.\n\nSo when the output is a filehandle it will carry out a seek to the\neof before writing any uncompressed data. If the output is a\nfilename, it will be opened for appending. If the output is a\nbuffer, all uncompressed data will be appended to the existing\nbuffer.\n\nConversely when \"Append\" is not specified, or it is present and is\nset to false, it will operate as follows.\n\nWhen the output is a filename, it will truncate the contents of\nthe file before writing any uncompressed data. If the output is a\nfilehandle its position will not be changed. If the output is a\nbuffer, it will be wiped before any uncompressed data is output.\n\nDefaults to 0.\n\n\"MultiStream => 0|1\"\nIf the input file/buffer contains multiple compressed data\nstreams, this option will uncompress the whole lot as a single\ndata stream.\n\nDefaults to 0.\n\n\"TrailingData => $scalar\"\nReturns the data, if any, that is present immediately after the\ncompressed data stream once uncompression is complete.\n\nThis option can be used when there is useful information\nimmediately following the compressed data stream, and you don't\nknow the length of the compressed data stream.\n\nIf the input is a buffer, \"trailingData\" will return everything\nfrom the end of the compressed data stream to the end of the\nbuffer.\n\nIf the input is a filehandle, \"trailingData\" will return the data\nthat is left in the filehandle input buffer once the end of the\ncompressed data stream has been reached. You can then use the\nfilehandle to read the rest of the input file.\n\nDon't bother using \"trailingData\" if the input is a filename.\n\nIf you know the length of the compressed data stream before you\nstart uncompressing, you can avoid having to use \"trailingData\" by\nsetting the \"InputLength\" option.\n\nExamples\nTo read the contents of the file \"file1.txt.gz\" and write the\nuncompressed data to the file \"file1.txt\".\n\nuse strict ;\nuse warnings ;\nuse IO::Uncompress::Gunzip qw(gunzip $GunzipError) ;\n\nmy $input = \"file1.txt.gz\";\nmy $output = \"file1.txt\";\ngunzip $input => $output\nor die \"gunzip failed: $GunzipError\\n\";\n\nTo read from an existing Perl filehandle, $input, and write the\nuncompressed data to a buffer, $buffer.\n\nuse strict ;\nuse warnings ;\nuse IO::Uncompress::Gunzip qw(gunzip $GunzipError) ;\nuse IO::File ;\n\nmy $input = IO::File->new( \"<file1.txt.gz\" )\nor die \"Cannot open 'file1.txt.gz': $!\\n\" ;\nmy $buffer ;\ngunzip $input => \\$buffer\nor die \"gunzip failed: $GunzipError\\n\";\n\nTo uncompress all files in the directory \"/my/home\" that match\n\"*.txt.gz\" and store the compressed data in the same directory\n\nuse strict ;\nuse warnings ;\nuse IO::Uncompress::Gunzip qw(gunzip $GunzipError) ;\n\ngunzip '</my/home/*.txt.gz>' => '</my/home/#1.txt>'\nor die \"gunzip failed: $GunzipError\\n\";\n\nand if you want to compress each file one at a time, this will do the\ntrick\n\nuse strict ;\nuse warnings ;\nuse IO::Uncompress::Gunzip qw(gunzip $GunzipError) ;\n\nfor my $input ( glob \"/my/home/*.txt.gz\" )\n{\nmy $output = $input;\n$output =~ s/.gz// ;\ngunzip $input => $output\nor die \"Error compressing '$input': $GunzipError\\n\";\n}\n\nOO Interface\nConstructor\nThe format of the constructor for IO::Uncompress::Gunzip is shown below\n\nmy $z = IO::Uncompress::Gunzip->new( $input [OPTS] )\nor die \"IO::Uncompress::Gunzip failed: $GunzipError\\n\";\n\nReturns an \"IO::Uncompress::Gunzip\" object on success and undef on\nfailure.  The variable $GunzipError will contain an error message on\nfailure.\n\nIf you are running Perl 5.005 or better the object, $z, returned from\nIO::Uncompress::Gunzip can be used exactly like an IO::File filehandle.\nThis means that all normal input file operations can be carried out\nwith $z.  For example, to read a line from a compressed file/buffer you\ncan use either of these forms\n\n$line = $z->getline();\n$line = <$z>;\n\nThe mandatory parameter $input is used to determine the source of the\ncompressed data. This parameter can take one of three forms.\n\nA filename\nIf the $input parameter is a scalar, it is assumed to be a\nfilename. This file will be opened for reading and the compressed\ndata will be read from it.\n\nA filehandle\nIf the $input parameter is a filehandle, the compressed data will\nbe read from it.  The string '-' can be used as an alias for\nstandard input.\n\nA scalar reference\nIf $input is a scalar reference, the compressed data will be read\nfrom $$input.\n\nConstructor Options\nThe option names defined below are case insensitive and can be\noptionally prefixed by a '-'.  So all of the following are valid\n\n-AutoClose\n-autoclose\nAUTOCLOSE\nautoclose\n\nOPTS is a combination of the following options:\n\n\"AutoClose => 0|1\"\nThis option is only valid when the $input parameter is a\nfilehandle. If specified, and the value is true, it will result in\nthe file being closed once either the \"close\" method is called or\nthe IO::Uncompress::Gunzip object is destroyed.\n\nThis parameter defaults to 0.\n\n\"MultiStream => 0|1\"\nAllows multiple concatenated compressed streams to be treated as a\nsingle compressed stream. Decompression will stop once either the\nend of the file/buffer is reached, an error is encountered\n(premature eof, corrupt compressed data) or the end of a stream is\nnot immediately followed by the start of another stream.\n\nThis parameter defaults to 0.\n\n\"Prime => $string\"\nThis option will uncompress the contents of $string before\nprocessing the input file/buffer.\n\nThis option can be useful when the compressed data is embedded in\nanother file/data structure and it is not possible to work out\nwhere the compressed data begins without having to read the first\nfew bytes. If this is the case, the uncompression can be primed\nwith these bytes using this option.\n\n\"Transparent => 0|1\"\nIf this option is set and the input file/buffer is not compressed\ndata, the module will allow reading of it anyway.\n\nIn addition, if the input file/buffer does contain compressed data\nand there is non-compressed data immediately following it, setting\nthis option will make this module treat the whole file/buffer as a\nsingle data stream.\n\nThis option defaults to 1.\n\n\"BlockSize => $num\"\nWhen reading the compressed input data, IO::Uncompress::Gunzip\nwill read it in blocks of $num bytes.\n\nThis option defaults to 4096.\n\n\"InputLength => $size\"\nWhen present this option will limit the number of compressed bytes\nread from the input file/buffer to $size. This option can be used\nin the situation where there is useful data directly after the\ncompressed data stream and you know beforehand the exact length of\nthe compressed data stream.\n\nThis option is mostly used when reading from a filehandle, in\nwhich case the file pointer will be left pointing to the first\nbyte directly after the compressed data stream.\n\nThis option defaults to off.\n\n\"Append => 0|1\"\nThis option controls what the \"read\" method does with uncompressed\ndata.\n\nIf set to 1, all uncompressed data will be appended to the output\nparameter of the \"read\" method.\n\nIf set to 0, the contents of the output parameter of the \"read\"\nmethod will be overwritten by the uncompressed data.\n\nDefaults to 0.\n\n\"Strict => 0|1\"\nThis option controls whether the extra checks defined below are\nused when carrying out the decompression. When Strict is on, the\nextra tests are carried out, when Strict is off they are not.\n\nThe default for this option is off.\n\n1.   If the FHCRC bit is set in the gzip FLG header byte, the\nCRC16 bytes in the header must match the crc16 value of the\ngzip header actually read.\n\n2.   If the gzip header contains a name field (FNAME) it consists\nsolely of ISO 8859-1 characters.\n\n3.   If the gzip header contains a comment field (FCOMMENT) it\nconsists solely of ISO 8859-1 characters plus line-feed.\n\n4.   If the gzip FEXTRA header field is present it must conform to\nthe sub-field structure as defined in RFC 1952.\n\n5.   The CRC32 and ISIZE trailer fields must be present.\n\n6.   The value of the CRC32 field read must match the crc32 value\nof the uncompressed data actually contained in the gzip file.\n\n7.   The value of the ISIZE fields read must match the length of\nthe uncompressed data actually read from the file.\n\n\"ParseExtra => 0|1\" If the gzip FEXTRA header field is present and this\noption is set, it will force the module to check that it conforms to\nthe sub-field structure as defined in RFC 1952.\nIf the \"Strict\" is on it will automatically enable this option.\n\nDefaults to 0.\n\nExamples\nTODO\n",
                "subsections": []
            },
            "Methods": {
                "content": "read\nUsage is\n\n$status = $z->read($buffer)\n\nReads a block of compressed data (the size of the compressed block is\ndetermined by the \"Buffer\" option in the constructor), uncompresses it\nand writes any uncompressed data into $buffer. If the \"Append\"\nparameter is set in the constructor, the uncompressed data will be\nappended to the $buffer parameter. Otherwise $buffer will be\noverwritten.\n\nReturns the number of uncompressed bytes written to $buffer, zero if\neof or a negative number on error.\n\nread\nUsage is\n\n$status = $z->read($buffer, $length)\n$status = $z->read($buffer, $length, $offset)\n\n$status = read($z, $buffer, $length)\n$status = read($z, $buffer, $length, $offset)\n\nAttempt to read $length bytes of uncompressed data into $buffer.\n\nThe main difference between this form of the \"read\" method and the\nprevious one, is that this one will attempt to return exactly $length\nbytes. The only circumstances that this function will not is if end-of-\nfile or an IO error is encountered.\n\nReturns the number of uncompressed bytes written to $buffer, zero if\neof or a negative number on error.\n\ngetline\nUsage is\n\n$line = $z->getline()\n$line = <$z>\n\nReads a single line.\n\nThis method fully supports the use of the variable $/ (or\n$INPUTRECORDSEPARATOR or $RS when \"English\" is in use) to determine\nwhat constitutes an end of line. Paragraph mode, record mode and file\nslurp mode are all supported.\n\ngetc\nUsage is\n\n$char = $z->getc()\n\nRead a single character.\n\nungetc\nUsage is\n\n$char = $z->ungetc($string)\n\ninflateSync\nUsage is\n\n$status = $z->inflateSync()\n\nTODO\n\ngetHeaderInfo\nUsage is\n\n$hdr  = $z->getHeaderInfo();\n@hdrs = $z->getHeaderInfo();\n\nThis method returns either a hash reference (in scalar context) or a\nlist or hash references (in array context) that contains information\nabout each of the header fields in the compressed data stream(s).\n\nName The contents of the Name header field, if present. If no name is\npresent, the value will be undef. Note this is different from a\nzero length name, which will return an empty string.\n\nComment\nThe contents of the Comment header field, if present. If no\ncomment is present, the value will be undef. Note this is\ndifferent from a zero length comment, which will return an empty\nstring.\n\ntell\nUsage is\n\n$z->tell()\ntell $z\n\nReturns the uncompressed file offset.\n\neof\nUsage is\n\n$z->eof();\neof($z);\n\nReturns true if the end of the compressed input stream has been\nreached.\n\nseek\n$z->seek($position, $whence);\nseek($z, $position, $whence);\n\nProvides a sub-set of the \"seek\" functionality, with the restriction\nthat it is only legal to seek forward in the input file/buffer.  It is\na fatal error to attempt to seek backward.\n\nNote that the implementation of \"seek\" in this module does not provide\ntrue random access to a compressed file/buffer. It  works by\nuncompressing data from the current offset in the file/buffer until it\nreaches the uncompressed offset specified in the parameters to \"seek\".\nFor very small files this may be acceptable behaviour. For large files\nit may cause an unacceptable delay.\n\nThe $whence parameter takes one the usual values, namely SEEKSET,\nSEEKCUR or SEEKEND.\n\nReturns 1 on success, 0 on failure.\n\nbinmode\nUsage is\n\n$z->binmode\nbinmode $z ;\n\nThis is a noop provided for completeness.\n\nopened\n$z->opened()\n\nReturns true if the object currently refers to a opened file/buffer.\n\nautoflush\nmy $prev = $z->autoflush()\nmy $prev = $z->autoflush(EXPR)\n\nIf the $z object is associated with a file or a filehandle, this method\nreturns the current autoflush setting for the underlying filehandle. If\n\"EXPR\" is present, and is non-zero, it will enable flushing after every\nwrite/print operation.\n\nIf $z is associated with a buffer, this method has no effect and always\nreturns \"undef\".\n\nNote that the special variable $| cannot be used to set or retrieve the\nautoflush setting.\n\ninputlinenumber\n$z->inputlinenumber()\n$z->inputlinenumber(EXPR)\n\nReturns the current uncompressed line number. If \"EXPR\" is present it\nhas the effect of setting the line number. Note that setting the line\nnumber does not change the current position within the file/buffer\nbeing read.\n\nThe contents of $/ are used to determine what constitutes a line\nterminator.\n\nfileno\n$z->fileno()\nfileno($z)\n\nIf the $z object is associated with a file or a filehandle, \"fileno\"\nwill return the underlying file descriptor. Once the \"close\" method is\ncalled \"fileno\" will return \"undef\".\n\nIf the $z object is associated with a buffer, this method will return\n\"undef\".\n\nclose\n$z->close() ;\nclose $z ;\n\nCloses the output file/buffer.\n\nFor most versions of Perl this method will be automatically invoked if\nthe IO::Uncompress::Gunzip object is destroyed (either explicitly or by\nthe variable with the reference to the object going out of scope). The\nexceptions are Perl versions 5.005 through 5.00504 and 5.8.0. In these\ncases, the \"close\" method will be called automatically, but not until\nglobal destruction of all live objects when the program is terminating.\n\nTherefore, if you want your scripts to be able to run on all versions\nof Perl, you should call \"close\" explicitly and not rely on automatic\nclosing.\n\nReturns true on success, otherwise 0.\n\nIf the \"AutoClose\" option has been enabled when the\nIO::Uncompress::Gunzip object was created, and the object is associated\nwith a file, the underlying file will also be closed.\n\nnextStream\nUsage is\n\nmy $status = $z->nextStream();\n\nSkips to the next compressed data stream in the input file/buffer. If a\nnew compressed data stream is found, the eof marker will be cleared and\n$.  will be reset to 0.\n\nReturns 1 if a new stream was found, 0 if none was found, and -1 if an\nerror was encountered.\n\ntrailingData\nUsage is\n\nmy $data = $z->trailingData();\n\nReturns the data, if any, that is present immediately after the\ncompressed data stream once uncompression is complete. It only makes\nsense to call this method once the end of the compressed data stream\nhas been encountered.\n\nThis option can be used when there is useful information immediately\nfollowing the compressed data stream, and you don't know the length of\nthe compressed data stream.\n\nIf the input is a buffer, \"trailingData\" will return everything from\nthe end of the compressed data stream to the end of the buffer.\n\nIf the input is a filehandle, \"trailingData\" will return the data that\nis left in the filehandle input buffer once the end of the compressed\ndata stream has been reached. You can then use the filehandle to read\nthe rest of the input file.\n\nDon't bother using \"trailingData\" if the input is a filename.\n\nIf you know the length of the compressed data stream before you start\nuncompressing, you can avoid having to use \"trailingData\" by setting\nthe \"InputLength\" option in the constructor.\n",
                "subsections": []
            },
            "Importing": {
                "content": "No symbolic constants are required by IO::Uncompress::Gunzip at\npresent.\n\n:all Imports \"gunzip\" and $GunzipError.  Same as doing this\n\nuse IO::Uncompress::Gunzip qw(gunzip $GunzipError) ;\n",
                "subsections": []
            },
            "EXAMPLES": {
                "content": "Working with Net::FTP\nSee IO::Compress::FAQ\n",
                "subsections": []
            },
            "SUPPORT": {
                "content": "General feedback/questions/bug reports should be sent to\n<https://github.com/pmqs/IO-Compress/issues> (preferred) or\n<https://rt.cpan.org/Public/Dist/Display.html?Name=IO-Compress>.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "Compress::Zlib, IO::Compress::Gzip, IO::Compress::Deflate,\nIO::Uncompress::Inflate, IO::Compress::RawDeflate,\nIO::Uncompress::RawInflate, IO::Compress::Bzip2,\nIO::Uncompress::Bunzip2, IO::Compress::Lzma, IO::Uncompress::UnLzma,\nIO::Compress::Xz, IO::Uncompress::UnXz, IO::Compress::Lzip,\nIO::Uncompress::UnLzip, IO::Compress::Lzop, IO::Uncompress::UnLzop,\nIO::Compress::Lzf, IO::Uncompress::UnLzf, IO::Compress::Zstd,\nIO::Uncompress::UnZstd, IO::Uncompress::AnyInflate,\nIO::Uncompress::AnyUncompress\n\nIO::Compress::FAQ\n\nFile::GlobMapper, Archive::Zip, Archive::Tar, IO::Zlib\n\nFor RFC 1950, 1951 and 1952 see\n<http://www.faqs.org/rfcs/rfc1950.html>,\n<http://www.faqs.org/rfcs/rfc1951.html> and\n<http://www.faqs.org/rfcs/rfc1952.html>\n\nThe zlib compression library was written by Jean-loup Gailly\n\"gzip@prep.ai.mit.edu\" and Mark Adler \"madler@alumni.caltech.edu\".\n\nThe primary site for the zlib compression library is\n<http://www.zlib.org>.\n\nThe primary site for gzip is <http://www.gzip.org>.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "This module was written by Paul Marquess, \"pmqs@cpan.org\".\n",
                "subsections": []
            },
            "MODIFICATION HISTORY": {
                "content": "See the Changes file.\n",
                "subsections": []
            },
            "COPYRIGHT AND LICENSE": {
                "content": "Copyright (c) 2005-2021 Paul Marquess. All rights reserved.\n\nThis program is free software; you can redistribute it and/or modify it\nunder the same terms as Perl itself.\n\nperl v5.34.0                      2026-06-23     IO::Uncompress::Gunzip(3perl)",
                "subsections": []
            }
        }
    }
}