in reply to using zcat for input?
In 5.8+ with PerlIO, you can use PerlIO::gzip.
If you're in an earlier perl, Compress::Zlib has what you need.use PerlIO::gzip; for (glob '*.gz') { open my $fh, '<:gzip', $_ or die $!; { local $_; while (<$fh>) { # do stuff } } close $fh or die $!; }
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: using zcat for input?
by Schuk (Pilgrim) on Dec 10, 2004 at 13:07 UTC |