Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use warnings;
    use strict;
    ...
    $zip->read('tst.zip') == AZ_OK or die "read error\n";
    $zip->addFile('tst2/s2.tst');
    $zip->overwrite()     == AZ_OK or die "write error\n";
    
  2. or download this
    #!/usr/bin/perl
    use warnings;
    use strict;
    ...
    $m1->fileName('foo/tst2/s2.tst');           # Rename the file, adding 
    +a subdir
    
    $zip->overwrite()     == AZ_OK or die "Write error\n";