Hello, Anyone knows the way to read ".gz" members in .tar file? I can read plain text files by the next code. But when the member is ".gz", I get uneadbale binay data.
use Archive::Tar; my $file = shift; my $tar = Archive::Tar->new($file, 1) or die "Error Archive::Tar, :$!"; my @files = $tar->list_files; for my $file (@files) { my $filedata = $tar->get_content($file); print "$file:\n", $filedata, "\n"; } __END__ Regards, H.T. _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs