1Archive::Peek(3)      User Contributed Perl Documentation     Archive::Peek(3)
2
3
4

NAME

6       Archive::Peek - Peek into archives without extracting them
7

SYNOPSIS

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

DESCRIPTION

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

METHODS

20   new
21       The constructor takes the filename of the archive to peek into:
22
23         my $peek = Archive::Peek->new( filename => 'archive.tgz' );
24
25   files
26       Returns the files in the archive:
27
28         my @files = $peek->files();
29
30   file
31       Returns the contents of a file in the archive:
32
33         my $contents = $peek->file('README.txt')
34

AUTHOR

36       Leon Brocard <acme@astray.com>
37
39       Copyright (C) 2008, Leon Brocard.
40

LICENSE

42       This module is free software; you can redistribute it or modify it
43       under the same terms as Perl itself.
44
45
46
47perl v5.34.0                      2022-01-20                  Archive::Peek(3)
Impressum