Help for this page
open my $fh, "gzip -cd $file |" or die "Couldn't read from '$file': $! / $?"; ... while (<$fh>) { # or whatever loop mechanism is appropriate ... }