On Thu, Feb 27, 2003 at 01:43:13PM -0500, Carlton Lo wrote: > Hi, > I'm new to perl, I'm trying to write a pl script that would open a gzipped txt > file. Is there any functions where I can call for this. I've tried the followings: > > method #1 open(IN, "gunzip -c data.gz") || die "cannot open input data file";
that should be open(IN, "gunzip -c data.gz|") Note the new '|' at the end. Have you read the documentation on open ? You should probably read the perlopentut manpage. -- Jason _______________________________________________ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm

