in reply to Opening and reading .gz file

See Compress::Zlib if you want a module for this sort of thing.
-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re: Re: opening and reading .gz file
by ChemBoy (Priest) on Aug 22, 2002 at 20:12 UTC

    Better yet, see IO::Zlib, which lets you use a simple filehandle interface.

    use IO::Zlib; #requires Compress::Zlib, of course my $fh = IO::Zlib->new("foo.gz"); while (<$fh>) { go_nuts(); }



    If God had meant us to fly, he would *never* have given us the railroads.
        --Michael Flanders