in reply to zipped and tar files.
Best Option:
If you have a newer version of the gzip (GNU zip) utility.
use Archive::Tar; # using the cli utility gunzip # -c causes the file to be 'cat'ed open F, "gunzip -c $filename |"; my $tar = Archive::Tar->new(*F);
Other Option:
Get the ncompress utility and compile. Then you can:
use Archive::Tar; # using the cli utility compress # -c causes the file to be 'cat'ed open F, "uncompress -c $filename |"; # or use # open F, "zcat -c $filename |"; my $tar = Archive::Tar->new(*F);
Archive::TarGzip does not seem to support .Z compressed files either.
|
|---|