[LA.pm] calling gzip from within perl

Robert Spier rspier at pobox.com
Wed Jun 29 08:06:23 PDT 2005


> >>   open(LOG, "gunzip $file |") or die "Cannot gunzip '$file': $!";
> >        open(FILE, "gunzip $fileLoc |") or die "Cannot gunzip '$fileLoc': $!";

You really want: gunzip -c 




More information about the Losangeles-pm mailing list