woland99 has asked for the wisdom of the Perl Monks concerning the following question:
Howdy I am trying to actually use Compress::LZF_PP. So I thought I would give it a test and I compressed a string using Compress::LZF and check if LZF_PP can decompress it.
Not sure what am I doing wrong...
use Compress::LZF; use Compress::LZF_PP; use strict; my $contents = q{ A123456789 123456789 123456789 123456789 123456789 123456789 B123456789 123456789 123456789 123456789 123456789 123456789 }; print STDERR $contents; my $compressed = Compress::LZF::compress($contents); my $uncompressed = Compress::LZF_PP::decompress($compressed); print STDERR "----------------------------------"; print STDERR $uncompressed;
Result is:
A123456789 123456789 123456789 123456789 123456789 123456789 B123456789 123456789 123456789 123456789 123456789 123456789 ---------------------------------- A123456789 123456789 123456789 123456789 123456789 123456789 B6789 123456789 123456789 123456789 123456789 1234A123456789
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is Compress::LZF_PP compatible with Compress::LZF?
by RMGir (Prior) on Dec 12, 2011 at 12:44 UTC | |
by woland99 (Beadle) on Dec 12, 2011 at 12:50 UTC | |
|
Re: Is Compress::LZF_PP compatible with Compress::LZF?
by Khen1950fx (Canon) on Dec 13, 2011 at 09:02 UTC | |
by woland99 (Beadle) on Dec 13, 2011 at 12:34 UTC |