06 Oct 2011 08:56:18 UTC
- Distribution: Archive-Peek-External
- Module version: 0.35
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (440 / 134 / 1)
- KwaliteeBus factor: 1
- 50.00% Coverage
- License: perl_5
- Activity24 month
- Download (13.3KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
Archive::Peek::External - Peek into archives without extracting them (using external tools)
use Archive::Peek::External; my $peek = Archive::Peek::External->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 using external tools such as 'tar' and 'unzip'.
The constructor takes the filename of the archive to peek into:
my $peek = Archive::Peek::External->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 <email@example.com>
Copyright (C) 2011, Leon Brocard.
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
Module Install Instructions
To install Archive::Peek::External, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Archive::Peek::External
For more information on module installation, please visit the detailed CPAN module installation guide.