Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Is there a limit of files I can decompress and then open in a script, if I close each one before openning other?

by djp (Hermit)
on Jul 26, 2007 at 03:33 UTC ( #628857=note: print w/ replies, xml ) Need Help??


in reply to Is there a limit of files I can decompress and then open in a script, if I close each one before openning other?

Recommend PerlIO::gzip for reading gzipped files, e.g.

use strict; use warnings; use IO::File; use PerlIO::gzip; my $ifh = IO::File->new( $ifile, '<:gzip' ) or die "Cannot open $ifile: $!\n"; while (<$ifh>) { ... }


Comment on Re: Is there a limit of files I can decompress and then open in a script, if I close each one before openning other?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://628857]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2015-05-24 08:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (471 votes), past polls