my $fh = IO::File->new_tmpfile or print "Unable to make ne +w temp file: $!"; $member->extractToFileHandle($fh); if ($member->extractToFileHandle($fh) != 0){ print "Error in $archivedir$filename\n"; next; } seek($fh, 0, 0); binmode($fh);
You should binmode the filehandle just after you create it.
In reply to Re: Zip file CRC validation
by jwkrahn
in thread Zip file CRC validation
by msalerno
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |