Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Archive::Peek(3)      User Contributed Perl Documentation     Archive::Peek(3)

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.

perl v5.32.1			  2011-09-26		      Archive::Peek(3)

NAME | SYNOPSIS | DESCRIPTION | METHODS | AUTHOR | COPYRIGHT | LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Archive::Peek&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help