in reply to Reading .gz files.

A “gzip” file and a “zip” file are not quite the same.   Compress::Zlib should be the appropriate module for your purposes.   (A search for “compress gzip” at http://search.cpan.org provides plenty of working examples.

Replies are listed 'Best First'.
Re^2: Reading .gz files.
by pspillai (Initiate) on Mar 23, 2011 at 19:59 UTC
    Thanks. That works fine. There's some issue with writing the results to a zipped file. I used a code ------ my $gz=gzopen("test.vcf.gz","wb"); $gz -> gzwrite(@dose); $gz ->gzclose; ------------------ What my intention was to get a file with contents of @dose in a compressed .gz file - test.vcf.gz What's wrong in this? I am getting a file test.vcf.gz which has just one line ! Thank you. P.