Re: problem using unix gzcat with perl filehandle

2007-08-04 Thread [EMAIL PROTECTED]
On Aug 2, 9:12 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: >open IN, '-|', "$GZCAT $file_location/$input" or die "Cannot read $input\n > $!"; On recent Perl you can avoid the need for your command to be parsed: open IN, '-|', $GZCAT, "$file_location/$input" or die "Cannot read $input\n

Re: problem using unix gzcat with perl filehandle

2007-08-02 Thread Charlotte Hee
Re: problem using unix gzcat with perl filehandle On 8/2/07, Charlotte Hee <[EMAIL PROTECTED]> wrote: open(IN,"$GZCAT $file_location/$input") || die "Cannot read $input\n"; I think you want a piped open: open(IN, "$GZCAT $file_location/$input |") or die

Re: problem using unix gzcat with perl filehandle

2007-08-02 Thread Tom Phoenix
On 8/2/07, Charlotte Hee <[EMAIL PROTECTED]> wrote: >open(IN,"$GZCAT $file_location/$input") || die "Cannot read $input\n"; I think you want a piped open: open(IN, "$GZCAT $file_location/$input |") or die "Cannot gzcat '$input': $!"; Hope this helps! --Tom Phoenix Stonehenge Perl Tra

Re: problem using unix gzcat with perl filehandle

2007-08-02 Thread John W. Krahn
Charlotte Hee wrote: Hello All, Hello, I have a set of gzipped files and I would like to unzip and read the contents using perl v5.8 and gzcat. The location of gzcat is '/usr/bin/gzcat' and the filenames are in the format: batch.shares.2007-07-24.gz where the date changes but the rest o

problem using unix gzcat with perl filehandle

2007-08-02 Thread Charlotte Hee
Hello All, I have a set of gzipped files and I would like to unzip and read the contents using perl v5.8 and gzcat. The location of gzcat is '/usr/bin/gzcat' and the filenames are in the format: batch.shares.2007-07-24.gz where the date changes but the rest of the name is the same. All the