in reply to CRC Error on ZIP Files
Are you using warnings and strict? The code fragment you posted shows use warnings; but the following suggests it's not used | there or has been disabled:
c:\@Work\Perl\monks>perl -wMstrict -le "my $index; $index == 0; ;; my @ra = qw(foo bar); print $ra[$index]; " Useless use of numeric eq (==) in void context at -e line 1. Use of uninitialized value $index in numeric eq (==) at -e line 1. Use of uninitialized value $index in array element at -e line 1. foo
use warnings; and use strict; may help you find many instances of questionable code.
Another question comes to mind about the 'download' method you are using. If a text file is downloaded via a channel that automatically corrects line endings (e.g., cr-lf versus lf), the file will visually appear unchanged, but a binary file may be (almost certainly will be if it's big enough) corrupted. If you're using FTP, are you using ascii or binary mode?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CRC Error on ZIP Files
by SearchigPerl (Acolyte) on Mar 01, 2014 at 17:34 UTC | |
by Corion (Patriarch) on Mar 01, 2014 at 18:03 UTC | |
by SearchigPerl (Acolyte) on Mar 01, 2014 at 19:22 UTC | |
by Corion (Patriarch) on Mar 02, 2014 at 06:28 UTC | |
by graff (Chancellor) on Mar 01, 2014 at 19:56 UTC | |
by aitap (Curate) on Mar 02, 2014 at 11:37 UTC | |
by ww (Archbishop) on Mar 01, 2014 at 17:56 UTC | |
by SearchigPerl (Acolyte) on Mar 01, 2014 at 18:59 UTC |