Compress::Bzip2 - Interface to Bzip2 compression library
use Compress::Bzip2; $dest = Compress::Bzip2::compress($source, [$level]); $dest = Compress::Bzip2::decompress($source);
The Compress::Bzip2 module provides a Perl interface to the Bzip2 compression library (see "AUTHOR" for details about where to get Bzip2). A relevant subset of the functionality provided by Bzip2 is available in Compress::Bzip2.
All string parameters can either be a scalar or a scalar reference.
$dest = Compress::Bzip2::compress($string)
Compress a string using the default compression level, returning a string containing compressed data.
$dest = Compress::Bzip2::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::Bzip2::decompress($string)
Decompress the data in string, returning a string containing the decompressed data.
The Compress::Bzip2 module was written by Gawdi Azem azemgi@rupert.informatik.uni-stuttgart.de.
1.00 First public release of Compress::Bzip2.
1.02 Added BZ2_ prefixes so that it works with libbz2 versions >1.0
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::Bzip2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Compress::Bzip2
CPAN shell
perl -MCPAN -e shell install Compress::Bzip2
For more information on module installation, please visit the detailed CPAN module installation guide.