in reply to Re^2: Gzip inflate a variable
in thread Gzip inflate a variable
If you want the output to go to a filehandleuse IO::Compress::Gzip qw(gzip $GzipError); my $compressed; if(gzip \$foo => \$compressed [,OPTS]){ # Compressed version of $foo stored in $compressed }
If you want to send the output to standard output, use "-"# assume $fh is a filehandle ... gzip \$foo => $fh
Paulgzip \$foo => "-"
|
|---|