I am successfully:
- extracting one of the sub zip files from the master zip.
- updating and replacing the file in the sub zip. This is working so I am faily confident that I am using the methods
in the proper fashion.
The error is when I am attempting to replace the sub zip
in the master zip.
What is different with this step is
I am adding a file that is already a zip file.
Is the
module capable of adding a zip to a zip?
Here is the error displayed:
IO error: reading data : Bad file descriptor
Archive::Zip::ZipFileMember::_readRawChunk('Archive::Zip::ZipFileMember=HASH(0xb38a2a0)', 'SCALAR(0xb3913ac)', 32768) called at E:/Perl/site/lib/Archive/Zip.pm line 1774
Archive::Zip::Member::readChunk('Archive::Zip::ZipFileMember=HASH(0xb38a2a0)', 32768) called at E:/Perl/site/lib/Archive/Zip.pm line 2061
Archive::Zip::Member::_writeData('Archive::Zip::ZipFileMember=HASH(0xb38a2a0)', 'IO::File=GLOB(0xb3a561c)') called at E:/Perl/site/lib/Archive/Zip.pm line 2030
Archive::Zip::Member::_writeToFileHandle('Archive::Zip::ZipFileMember=HASH(0xb38a2a0)', 'IO::File=GLOB(0xb3a561c)', 1, 251050) called at E:/Perl/site/lib/Archive/Zip.pm line 723
Archive::Zip::Archive::writeToFileHandle('Archive::Zip::Archive=HASH(0x1f12968)', 'IO::File=GLOB(0xb3a561c)') called at E:/Perl/site/lib/Archive/Zip.pm line 757
Archive::Zip::Archive::overwriteAs('Archive::Zip::Archive=HASH(0x1f12968)', 'E:\applications\.\DailyRpts2\temp\CS0245-1_DY051217.zip') called at E:/Perl/site/lib/Archive/Zip.pm line 741
Archive::Zip::Archive::overwrite('Archive::Zip::Archive=HASH(0x1f12968)') called at E:\applications\dailyrpts2\DailyRpts2.pl line 926
main::PrepareTrancardForLoad('E:\applications\.\DailyRpts2\temp\TRANCARD.ZIP', 3) called at E:\applications\dailyrpts2\DailyRpts2.pl line 579
main::ProcessZipMembers() called at E:\applications\dailyrpts2\DailyRpts2.pl line 481
main::ProcessDYZipFiles() called at E:\applications\dailyrpts2\DailyRpts2.pl line 235
Undefined subroutine &Archive::Zip::Archive::_printError called at E:/Perl/site/lib/Archive/Zip.pm line 791.
Edited 3 Jan 2006, by [footpad]: Added <code> tags to make errors easier to read.
Our calls to the module were being resolved by modules bundled in the build by ActiveState which were not up to date.
When I queried the version in ppm it was reported that Archive-Zip was not installed.
I installed Archive-Zip and now my script runs to completion.
We had never installed the module since we never had issues with the calls.
Thanks for your response. (I hope this helps others with similar symptoms but not necessarily this module.)
perlmonks.org content © perlmonks.org and john7701, mikeock
prlmnks.org © 2006 edmund von der burg (eccles & toad)
v 0.03