in reply to Is Compress::LZF_PP compatible with Compress::LZF?

First, get rid of Compress::LZF_PP. Second, there's no need to print contents to STDERR. You won't need to. Here's what I used:
#!/usr/bin/perl use strict; use warnings; use Compress::LZF qw(:compress); my $contents = q( A123456789 123456789 123456789 123456789 123456789 123456789 B123456789 123456789 123456789 123456789 123456789 123456789 ); print "-" x 60; my $compressed = compress($contents); my $decompressed = decompress($compressed); print $decompressed;
Note that Compress::LZF only works with liblzf. In other words, the data must be compressed and decompressed with liblzf exclusively. It won't work with Java-based versions of the algorithm.

Replies are listed 'Best First'.
Re^2: Is Compress::LZF_PP compatible with Compress::LZF?
by woland99 (Beadle) on Dec 13, 2011 at 12:34 UTC
    Thanks - that is important fact. I think I will have to dig out source of Java program that does compression and work from there.