in reply to Getting Text From A Compressed File

If you have PerlIO enabled (default in 5.8+), you can use PerlIO::gzip:

use PerlIO::gzip; open my $fh, '<:gzip', '/path/to/file.gz' or die $!; while (<$fh>) { # do stuff } close $fh or die $!;

Update: Typo fixed, thanks, Roy Johnson++.

After Compline,
Zaxo