Subject: | invalid zip file produced when running "perl -l" |
When running perl with the -l switch (line-end processing), a 0x0a is
appended after every print call, producing an invalid zip file.
perl -l -MArchive::Zip=:ERROR_CODES -e "my $z = Archive::Zip->new; $z-
Show quoted text
>addFile(q(a.txt)) or die q(1); $z->writeToFileNamed(q(a.zip)) == AZ_OK
or die q(2);"
This produces an invalid a.zip. Taking away the -l option produces a
valid a.zip.