|
|
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.
On error undef is returned.
The Compress::Bzip2 module was written by Gawdi Azem azemgi@rupert.informatik.uni-stuttgart.de.
1.00 First public release of Compress::Bzip2.