Archive::Peek - Peek into archives without extracting them
Contents
Copyright
Copyright (C) 2008, Leon Brocard.
Description
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.
License
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
perl v5.32.1 2021-11-16 Archive::Peek(3pm)
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')
Name
Archive::Peek - Peek into archives without extracting them
Synopsis
use Archive::Peek;
my $peek = Archive::Peek->new( filename => 'archive.tgz' );
my @files = $peek->files();
my $contents = $peek->file('README.txt')
