in reply to Re^3: CRC Error on ZIP Files
in thread CRC Error on ZIP Files

Hi Corion,

my deepest gratitude to you for your idea of testing the zip file on disk !
I have been assuming the zip file itself would be generated wrongly. Now I
realize it's not ! The zip file, prior to downloading is working perfectly fine. The
problem lies within the download-script. Yet having added the command
binmode STDOUT; did not alter anything.

Replies are listed 'Best First'.
Re^5: CRC Error on ZIP Files
by Corion (Patriarch) on Mar 02, 2014 at 06:28 UTC

    Did you look at the expected and actual file sizes? I note in your download subroutine that you never check whether open succeeds. Maybe the file you are trying to open does not exist?

    my $filename= $_[0].$_[1]; open my $peunter, '<', $filename or die "Couldn't open '$filename': $!"; ...