Debian Codegraph @

README

raw
1 NAME
2 Archive::Peek - Peek into archives without extracting them
3
4 SYNOPSIS
5 use Archive::Peek;
6 my $peek = Archive::Peek->new( filename => 'archive.tgz' );
7 my @files = $peek->files();
8 my $contents = $peek->file('README.txt')
9
10 DESCRIPTION
11 This module lets you peek into archives without extracting them. It
12 currently supports tar files and zip files. To support Bzip2- compressed
13 files, you should install IO::Uncompress::Bunzip2.
14
15 METHODS
16 new
17 The constructor takes the filename of the archive to peek into:
18
19 my $peek = Archive::Peek->new( filename => 'archive.tgz' );
20
21 files
22 Returns the files in the archive:
23
24 my @files = $peek->files();
25
26 file
27 Returns the contents of a file in the archive:
28
29 my $contents = $peek->file('README.txt')
30
31 AUTHOR
32 Leon Brocard <[email protected]>
33
34 COPYRIGHT
35 Copyright (C) 2008, Leon Brocard.
36
37 LICENSE
38 This module is free software; you can redistribute it or modify it under
39 the same terms as Perl itself.
40