in reply to Having Unix to unzip a file and Perl to wait untill it finishes

You can also use Tie::Gzip, something like:
use Tie::Gzip; tie *CONTENT, 'Tie::Gzip'; open(\*CONTENT, "<$input") or die "Can't open $input\n"; while(<CONTENT>){ ... }
  • Comment on Re: Having Unix to unzip a file and Perl to wait untill it finishes
  • Download Code

Replies are listed 'Best First'.
Re^2: Having Unix to unzip a file and Perl to wait untill it finishes
by Fletch (Bishop) on Jan 23, 2005 at 02:06 UTC

    All well and good, except gzip and Tie::Gzip don't handle .zip (i.e. containing multiple files as the OP says) files . . .