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?
In reply to Re: CRC Error on ZIP Files
by AnomalousMonk
in thread CRC Error on ZIP Files
by SearchigPerl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |