Archive::SevenZip::API::ArchiveZip - Archive::Zip compatibility API


  my $ar = Archive::SevenZip->archiveZipApi(
      find => 1,
      archivename => $archivename,
      verbose => $verbose,

This module implements just enough of the Archive::Zip API to pass some of the Archive::Zip test files. Ideally you can use this API to enable a script that uses Archive::Zip to also read other archive files supported by 7z.


  my $count = $az->numberOfMembers();


  my $entry = $az->memberNamed('hello_world.txt');
  print $entry->fileName, "\n";


  $ar->replaceMember('backup.txt', 'new-backup.txt');

Replaces the member in the archive. This is just delete then add.

I clearly don't understand the utility of this method. It clearly does not update the content of one file with the content of another file, as the name of the new file can be different.


This module tries to mimic the API of Archive::Zip.

Differences between Archive::Zip and Archive::SevenZip

7-Zip does not guarantee the order of entries within an archive

The Archive::Zip test suite assumes that items added later to an archive will appear later in the directory listing. 7-zip makes no such guarantee.


The public repository of this module is


The public support forum of this module is


Please report bugs in this module via the RT CPAN bug queue at or via mail to


Max Maischein


Copyright 2015-2019 by Max Maischein


This module is released under the same terms as Perl itself.