in reply to Re^4: Question on IO::UnCompress::GunZip...
in thread Question on IO::UnCompress::GunZip...
If that is what you are asking then try this (assuming the compressed file contains text)
use IO::Uncompress::Gunzip qw( $GunzipError ); my $file = "somefile"; my $gz = new IO::Uncompress::Gunzip $file or die "Cannot open $file: $GunzipError\n" ; while (<$gz>) { # whatever... }
|
|---|