regexes has asked for the wisdom of the Perl Monks concerning the following question:
When running this, I receive the following error:#!/usr/bin/perl use strict; use Archive::Zip qw(:ERROR_CODES); my $zipFile = Archive::Zip->new(); my $status = $zipFile->read( '/home/clueless/blabla.zip' ); my $oldimage1 = 'branch/stick/image1.jpeg'; my $newimage1 = '/home/clueless/newimage1.jpeg'; my $oldmember = $zipFile->replaceMember( $oldimage1, $newimage1 ); my $stat = $zipFile->overwrite();
The problem does not appear to be with the replace method because $oldmember contains image1.jpg, i.e. it returns correctly.Can't call method "_writeToFileHandle" without a package or object ref +erence at /usr/local/share/perl/5.8.8/Archive/Zip/Archive.pm line 280
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Archive::Zip - what am I missing?
by poolpi (Hermit) on Apr 10, 2008 at 10:39 UTC | |
by Anonymous Monk on Apr 10, 2008 at 10:46 UTC | |
by regexes (Hermit) on Apr 10, 2008 at 11:55 UTC | |
by nega (Scribe) on Apr 10, 2008 at 18:15 UTC | |
by regexes (Hermit) on Apr 11, 2008 at 07:29 UTC | |
|
Re: Archive::Zip - what am I missing?
by andreas1234567 (Vicar) on Apr 10, 2008 at 10:33 UTC | |
by Anonymous Monk on Apr 10, 2008 at 10:38 UTC | |
by andreas1234567 (Vicar) on Apr 10, 2008 at 11:09 UTC | |
|
Re: Archive::Zip - what am I missing?
by Anonymous Monk on Apr 10, 2008 at 10:36 UTC |