File: README

package info (click to toggle)
libarchive-peek-perl 0.35-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 96 kB
  • ctags: 10
  • sloc: perl: 126; makefile: 2
file content (40 lines) | stat: -rw-r--r-- 1,020 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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')

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.

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')

AUTHOR
    Leon Brocard <acme@astray.com>

COPYRIGHT
    Copyright (C) 2008, Leon Brocard.

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