open( IN, "gzip -cd $input_file_name |" ); while () { ... # process lines of uncompressed text }