in reply to File > 2G under linux
See. the PerlIO docs for more info on IO layers in perl5.8.0+ and PerlIO::gzip for info on the gzip layer used above.use PerlIO::gzip; open my $in_fh => "<:gzip", 'input.gz' or die "ack: $!"; open my $out_fh => ">:gzip", 'output.gz' or die "ack: $!"; while(<$in_fh>) { do_stuff($_) if /matches some condition/; print {$out_fh} $_; }
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: File > 2G under linux
by sweetblood (Prior) on Sep 11, 2003 at 13:36 UTC |