![]() If the $output_filename_or_reference parameter is a filehandle, the uncompressed data will be written to it. This file will be opened for writing and the uncompressed data will be written to it. If the $output_filename_or_reference parameter is a simple scalar, it is assumed to be a filename. This parameter can take one of these forms. The parameter $output_filename_or_reference is used to control the destination of the uncompressed data. # The $output_filename_or_reference parameter If the $input_filename_or_reference parameter is any other type, undef will be returned. The input is the list of files that match the fileglob. If $input_filename_or_reference is a string that is delimited by the characters "" unzip will assume that it is an input fileglob string. The complete array will be walked to ensure that it only contains valid filenames before any data is uncompressed. The input data will be read from each file in turn. If $input_filename_or_reference is an array reference, each element in the array must be a filename. If $input_filename_or_reference is a scalar reference, the input data will be read from $$input_filename_or_reference. The string '-' can be used as an alias for standard input. If the $input_filename_or_reference parameter is a filehandle, the input data will be read from it. This file will be opened for reading and the input data will be read from it. If the $input_filename_or_reference parameter is a simple scalar, it is assumed to be a filename. It can take one of the following forms: # A filename The parameter, $input_filename_or_reference, is used to define the source of the compressed data. Unzip expects at least two parameters, $input_filename_or_reference and $output_filename_or_reference and zero or more optional parameters (see "Optional Parameters") # The $input_filename_or_reference parameter # unzip $input_filename_or_reference => $output_filename_or_reference The functional interface needs Perl5.005 or better. Unzip $input_filename_or_reference => $output_filename_or_reference use IO::Uncompress::Unzip qw(unzip $UnzipError) For finer control over the uncompression process, see the "OO Interface" section. # Functional InterfaceĪ top-level function, unzip, is provided to carry out "one-shot" uncompression between buffers and/or files. To read Zstandard content, the module IO::Uncompress::UnZstd must be installed. To read Xz content, the module IO::Uncompress::UnXz must be installed. To read LZMA content, the module IO::Uncompress::UnLzma must be installed. To read Bzip2 content, the module IO::Uncompress::Bunzip2 must be installed. #Compressed file unzipper zip#The primary purpose of this module is to provide streaming read access to zip files and buffers.Īt present the following compression methods are supported by IO::Uncompress::Unzip # Store (0) # Deflate (8) # Bzip2 (12) This module provides a Perl interface that allows the reading of zlib files/buffers.įor writing zip files/buffers, see the companion module IO::Compress::Zip. $status = $z->read($buffer, $length, $offset) My $z = IO::Uncompress::Unzip->new( $input ) IO::Uncompress::Unzip - Read zip files/buffers #SYNOPSIS use IO::Uncompress::Unzip qw(unzip $UnzipError) The $output_filename_or_reference parameter.The $input_filename_or_reference parameter.unzip $input_filename_or_reference => $output_filename_or_reference. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |