Behavior of module Archive::Tar->new('file.tar.gz',1);

From: Wolfgang (mot12345_at_alexandria.ucsb.edu)
Date: 06/25/04


Date: 24 Jun 2004 23:06:59 -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



Relevant Pages

  • Behavior of module Archive::Tar->new(file.tar.gz,1);
    ... to unzip and untar a file. ... of the operation, a plain text file, back to the file system. ... of nonsense characters to the screen (standard output I assume). ... a directory, without intermediate screen output? ...
    (comp.lang.perl.modules)
  • Re: Behavior of module Archive::Tar->new(file.tar.gz,1);
    ... to unzip and untar a file. ... > of the operation, a plain text file, back to the file system. ... > of nonsense characters to the screen (standard output I assume). ... #Specify file - must specify packed address. ...
    (comp.lang.perl.modules)