![]() If $input_filename_or_reference is a string that is delimited by the characters "" lzip 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 compressed. 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 uncompressed data. Lzip 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 lzip $input_filename_or_reference => $output_filename_or_reference The functional interface needs Perl5.005 or better. Lzip $input_filename_or_reference => $output_filename_or_reference use IO::Compress::Lzip qw(lzip $LzipError) For finer control over the compression process, see the "OO Interface" section. Functional InterfaceĪ top-level function, lzip, is provided to carry out "one-shot" compression between buffers and/or files. This module provides a Perl interface that allows writing lzip compressed data to files or buffer.įor reading lzip files/buffers, see the companion module IO::Uncompress::UnLzip. My $z = IO::Compress::Lzip->new( $output ) IO::Compress::Lzip - Write lzip files/buffers SYNOPSIS use IO::Compress::Lzip qw(lzip $LzipError) Reading from a Filehandle and writing to an in-memory buffer.The $output_filename_or_reference parameter.The $input_filename_or_reference parameter.lzip $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 |