Archive::Peek(3)

πŸ’– NAME πŸ’–

okay so bestie, welcome to Archive::Peek(3) β€” that’s the manual name, folded in right here like a little name tag πŸ’… β€” from the User Contributed Perl Documentation. The vibe is 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> β€” that’s the author, iconic.

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. periodt πŸ’…


and that’s the whole page, bestie 🫢 β€” the footer says perl v5.42.0, dated 2021-11-14, and it’s still all Archive::Peek(3). byeee πŸ’‹

πŸ“¦ where this page comes from