Archive::Peek(3pm)

Archive::Peek3pm

Peek into archives without extracting them

Usage

  use Archive::Peek;
  my $peek = Archive::Peek->new( filename => 'archive.tgz' );
  my @files = $peek->files();
  my $contents = $peek->file('README.txt')

Overview

This module lets you peek into archives without extracting them. It currently supports tar files and zip files. To support Bzip2- compressed files, you should install IO::Uncompress::Bunzip2.

Methods

new

The constructor takes the filename of the archive to peek into:

  my $peek = Archive::Peek->new( filename => 'archive.tgz' );

files

Returns the files in the archive:

  my @files = $peek->files();

file

Returns the contents of a file in the archive:

  my $contents = $peek->file('README.txt')

Releases

7 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7–8
  2. 9–11
  3. 12–13

Author

Leon Brocard <[email protected]>

License

This module is free software; you can redistribute it or modify it under the same terms as Perl itself.

From libarchive-peek-perl 0.37-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.