Compress::LZMA::Simple - simple utility of LZMA compression/decompression


Compress-LZMA-Simple documentation  | view source Contained in the Compress-LZMA-Simple distribution.

Index


NAME

Top

Compress::LZMA::Simple - simple utility of LZMA compression/decompression

SYNOPSYS

Top

 use Compress::LZMA::Simple qw(compress decompress);
 my $original = "LZMA stands for Lempel-Ziv-Markov chain-Algorithm.";
 my $compressed = compress(\$original);
 my $decompressed = decompress($compressed);
 printf("%s\n", $$decompressed);




DESCRIPTION

Top

The Lempel-Ziv-Markov chain-Algorithm (LZMA) is an data compression algorithm. It compresses very well (better than gzip and bzip2), compresses very slowly (much slower than bzip2) but decompresses relatively quickly.

This module is a Perl interface of "lzmalib", which is a tiny wrapper of the LZMA SDK. "lzmalib" can be downloaded at http://tokyocabinet.sourceforge.net/misc/ .

The functions "compress" and "decompress" accept both of scalar and reference as the parameter. If a scalar is given, the function returns a scalar. If a reference is given, the function returns a reference.

AUTHOR

Top

Mikio Hirabayashi <mikio@users.sourceforge.net>

LICENSE

Top

This module is free software; you can redistribute it or modify it under the same terms as Perl itself.


Compress-LZMA-Simple documentation  | view source Contained in the Compress-LZMA-Simple distribution.