in reply to decompressing the string
Try this:syntax error at test.pl line 3, near "[," Execution of test.pl aborted due to compilation errors.
use Compress::Zlib; my $str_to_compress='a big string'; $compressed_str=compress($str_to_compress,1); $decompressed_str=uncompress($compressed_str); print $decompressed_str;
By the way, please note exact error message text next time. Paraphrasing errors will only confuse people.
|
|---|