Behavior of module Archive::Tar->new('file.tar.gz',1);
From: Wolfgang (mot12345_at_alexandria.ucsb.edu)
Date: 06/25/04
- Previous message: Paul: "Net::Telnet - problem with very large buffer"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 24 Jun 2004 22:23:57 -0700
I'm trying to use Archive::Tar (version 0.072 from Activestate/CPAN),
on Windows XP, to unzip and untar a file. I want to write the result
of the operation, a plain text file, back to the file system.
But just instantiating a new Archive::Tar->new(...) writes out pages
of nonsense characters to the screen (standard output I assume).
Here is the entire code doing this unexpected thing ('drg.tar.gz' is
the original zipped/tared text file, which I'd like to write back as
plain text file 'drg'):
use Archive::Tar;
use IO::Zlib;
my $tar = Archive::Tar->new('drg.tar.gz',1); # (cf. plain ->new;)
How do you use Archive::Tar to write the unzipped/untared file back to
a directory, without intermediate screen output?
Thanks for your help.
Wolfgang
Santa Barbara
- Previous message: Paul: "Net::Telnet - problem with very large buffer"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|