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
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
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
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
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