in reply to Re: Reading .gz files.
in thread Reading .gz files.
Hi,
Thank you for the response.
I tried to read file using Archive::Zip
code looks like --
#!/usr/bin/perl
use warnings;
use strict;
use Archive::Zip qw( :ERROR_CODES );
# Read a Zip file
my $somezip = Archive::Zip->new();
my $fname = $ARGV[0];
unless ( $somezip->read( "$fname" ) == AZ_OK ) {
die 'read error';
--------------------------------
The code is throwing en error which says- 'format error: Can't find EOCD signature'
File is a .gz file.
Do you have an idea what this error is about?
Thank you.