in reply to Archive::Zip - zip files are corrupted or invalid
When reading or writing binary files, always use binmode immediately after opening the filehandle.
... open my $fh, ">>", $fullpath or die $!; binmode $fh;
Also, when transferring a binary file, use "binary" mode in ftp.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Archive::Zip - zip files are corrupted or invalid
by tomdbs98 (Beadle) on Jul 12, 2011 at 16:26 UTC | |
by Corion (Patriarch) on Jul 12, 2011 at 16:30 UTC | |
by tomdbs98 (Beadle) on Jul 12, 2011 at 16:36 UTC |