| Archive-Peek documentation | view source | Contained in the Archive-Peek distribution. |
Archive::Peek - Peek into archives without extracting them
use Archive::Peek;
my $peek = Archive::Peek->new( filename => 'archive.tgz' );
my @files = $peek->files();
my $contents = $peek->file('README.txt')
This module lets you peek into archives without extracting them. It currently supports tar files and zip files.
The constructor takes the filename of the archive to peek into:
my $peek = Archive::Peek->new( filename => 'archive.tgz' );
Returns the files in the archive:
my @files = $peek->files();
Returns the contents of a file in the archive:
my $contents = $peek->file('README.txt')
Leon Brocard <acme@astray.com>
Copyright (C) 2008, Leon Brocard.
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
| Archive-Peek documentation | view source | Contained in the Archive-Peek distribution. |