in reply to Opening and reading .gz file

Try this: open(GZIN, 'gzcat file.gz|') ; while (<GZIN>) { }