C:\test>dir *.gz Volume in drive C is Local Disk Volume Serial Number is 8C78-4B42 Directory of C:\test 30/12/2014 13:59 228,720 01mailrc.txt.gz 20/03/2009 15:58 73,773,666 chr1.fa.gz 20/03/2009 16:02 11,549,785 chr21.fa.gz 20/03/2009 15:59 54,997,756 chr6.fa.gz 21/11/2016 19:03 13,203 test.gz 5 File(s) 140,563,130 bytes 0 Dir(s) 366,120,411,136 bytes free C:\test>p1 [0]{} Perl> open GZ, 'gunzip -c test.gz |' or die $!; print while ;; 1 qwertyuiopasdfghjklzxcvbnm 2 qwertyuiopasdfghjklzxcvbnm 3 qwertyuiopasdfghjklzxcvbnm 4 qwertyuiopasdfghjklzxcvbnm 5 qwertyuiopasdfghjklzxcvbnm 6 qwertyuiopasdfghjklzxcvbnm 7 qwertyuiopasdfghjklzxcvbnm 8 qwertyuiopasdfghjklzxcvbnm 9 qwertyuiopasdfghjklzxcvbnm ...