Archive-Tar-Wrapper

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    Returns a new instance of the class.

  read
        $arch->read("archive.tgz");

    read() opens the given tarball, expands it into a temporary directory
    and returns 1 on success or "undef" on failure. The temporary directory
    holding the tar data gets cleaned up when $arch goes out of scope.

    "read" handles both compressed and uncompressed files. To find out if a
    file is compressed or uncompressed, it tries to guess by extension, then
    by checking the first couple of bytes in the tar file.

    If only a limited number of files is needed from a tarball, they can be
    specified after the tarball name:

        $arch->read("archive.tgz", "path/file.dat", "path/sub/another.txt");

    The file names are passed unmodified to the "tar" command, make sure
    that the file paths match exactly what's in the tarball, otherwise
    read() will fail.

lib/Archive/Tar/Wrapper.pm  view on Meta::CPAN

=head2 read

    $arch->read("archive.tgz");

C<read()> opens the given tarball, expands it into a temporary directory
and returns 1 on success or C<undef> on failure.
The temporary directory holding the tar data gets cleaned up when C<$arch>
goes out of scope.

C<read> handles both compressed and uncompressed files. To find out if
a file is compressed or uncompressed, it tries to guess by extension,
then by checking the first couple of bytes in the tar file.

If only a limited number of files is needed from a tarball, they
can be specified after the tarball name:

    $arch->read("archive.tgz", "path/file.dat", "path/sub/another.txt");

The file names are passed unmodified to the C<tar> command, make sure
that the file paths match exactly what's in the tarball, otherwise
C<read()> will fail.



( run in 0.972 second using v1.01-cache-2.11-cpan-702932259ff )