open my $fh, "gzip -cd '$file' |" or die "Couldn't read '$file': $!"; while (<$fh>) { ... };