in reply to Archive::Zip - what am I missing?
It works like this :
#!/usr/bin/perl -w use strict; use Archive::Zip qw(:ERROR_CODES); use Data::Dumper; my $z = Archive::Zip->new(); unless ( $z->read( 'img.zip' ) == AZ_OK ) { die 'read error'; } my $old = $z->removeMember( 'old.img' ); my $new = $z->replaceMember( $old, 'new.img' ); print Dumper $z->members();
hth,
PooLpi
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Archive::Zip - what am I missing?
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 |