kleinbiker7 has asked for the wisdom of the Perl Monks concerning the following question:
Here is my code:
The results look like this:#! /usr/local/bin/perl use Compress::LZV1; $str = "When the dream is big enough, the facts dont count!"; print "START: $str\n"; $compressed = compress ($str); print "COMPRESSED: $compressed\n"; $decompressed = decompress ($compressed); print "DECOMPRESSED: $decompressed\n\n\n";
START: When the dream is big enough, the facts dont count! COMPRESSED: UWhen the dream is big enough, the facts dont count! DECOMPRESSED: When the dream is big enough, the facts dont count!
Basically, I cannot get the script to print out the compressed string. I would appreciate it greatly if you guys can tell me what I am doing wrong here. Cheers!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to use Compress::LZV1
by tadamec (Beadle) on Jun 10, 2004 at 22:42 UTC |