Re: Can't find EOCD signature Archive::Zip

2014-12-07 Thread Mike Flannigan
FYI, Brandon McCaig set me straight that Archive::Zip is not designed to extract Unix gzip files. I then tried to use Archive::Tar, but it gave the error: Invalid header block at offset unknown at unzipgz.pl line 20 Error reading H.dat.gz: at unzipgz.pl line 20. I tried it on 2 different sets

Re: Can't find EOCD signature Archive::Zip

2014-12-07 Thread Omega -1911
Perhaps you could use: Archive::Extract #!/usr/bin/perl -w $| = 1; BEGIN {open (STDERR, ">>error.txt"); } print "Content-type: text/html\n\n"; use Archive::Extract; use CGI::Carp qw/fatalsToBrowser/; use File::Find; use Cwd; my $dir = cwd(); my $time = time; my $cnt = 0; my $who =''; my $ok = ''

Re: Can't find EOCD signature Archive::Zip

2014-12-07 Thread Natxo Asenjo
On Sun, Dec 7, 2014 at 3:41 PM, Mike Flannigan wrote: > > FYI, > > Brandon McCaig set me straight that Archive::Zip is not > designed to extract Unix gzip files. in the standard Perl libraries you have IO::Uncompress::Gunzip which should do exactly what you require, I believe. http://perldoc.per

Re: Can't find EOCD signature Archive::Zip

2014-12-07 Thread Mike Flannigan
Thank you so much. This one gives an error due to the GCC compiler not being installed. I'm not going to install that right now, but I am going to file this away for the future. I'm sure I will want to do this in the future. Thank you very much. Mike On 12/7/2014 9:29 AM, Omega -1911 wrot