Compress::LZO - Interface to LZO compression library
use Compress::LZO; $dest = Compress::LZO::compress($source, [$level]); $dest = Compress::LZO::decompress($source); $dest = Compress::LZO::optimize($source); $crc = Compress::LZO::adler32($buffer [,$crc]); $crc = Compress::LZO::crc32($buffer [,$crc]); LZO_VERSION, LZO_VERSION_STRING, LZO_VERSION_DATE
The Compress::LZO module provides a Perl interface to the LZO compression library (see "AUTHOR" for details about where to get LZO). A relevant subset of the functionality provided by LZO is available in Compress::LZO.
All string parameters can either be a scalar or a scalar reference.
$dest = Compress::LZO::compress($string)
Compress a string using the default compression level, returning a string containing compressed data.
$dest = Compress::LZO::compress($string, $level)
Compress string, using the chosen compression level (either 1 or 9). Return a string containing the compressed data.
On error undef is returned.
$dest = Compress::LZO::decompress($string)
Decompress the data in string, returning a string containing the decompressed data.
$dest = Compress::LZO::optimize($string)
Optimize the representation of the compressed data, returning a string containing the compressed data.
Two functions are provided by LZO to calculate a checksum. For the Perl interface, the order of the two parameters in both functions has been reversed. This allows both running checksums and one off calculations to be done.
$crc = Compress::LZO::adler32($string [,$crc]) ; $crc = Compress::LZO::crc32($string [,$crc]) ;
The Compress::LZO module was written by Markus F.X.J. Oberhumer markus.oberhumer@jk.uni-linz.ac.at. The latest copy of the module should also be found on CPAN in modules/by-module/Compress/perl-lzo-x.x.tar.gz.
The LZO compression library was written by Markus F.X.J. Oberhumer markus.oberhumer@jk.uni-linz.ac.at. It is available from the LZO home page at http://wildsau.idv.uni-linz.ac.at/mfx/lzo.html.
1.00 First public release of Compress::LZO.
1 POD Error
The following errors were encountered while parsing the POD:
=cut found outside a pod block. Skipping to next block.
To install Compress::LZO, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Compress::LZO
CPAN shell
perl -MCPAN -e shell install Compress::LZO
For more information on module installation, please visit the detailed CPAN module installation guide.