Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I tried Archive::Extract in four of the tarballs mentioned in the error messages you gave:

    • DBIx-Perform-0.694.tar.gz
    • extensible_report_generator_1.13.zip
    • Logfile-Radius-1.14.tar.gz
    • ptkFAQ-0_03.tar.gz

    All these tarballs seem "not good" from the point of view of Perl/CPAN extraction modules that Archive::Extract uses. These are Archive::Tar and Archive::Zip.

    This is a bad thing that these modules are not as robust as possible, but they are good enough for the effort that CPAN volunteer developers put on these. But, on the other hand, all of these distributions work ok (at least on Ubunty 7.04) if you instruct Archive::Extract to prefer the binary utilities (like gzip, tar, unzip) over the Perl modules.

    So when I tried each one of the four mentioned distributions with this code, they extracted with no problems:

    #!/usr/bin/perl

    use Archive::Extract ();

    $Archive::Extract::PREFER_BIN = 1;

    my $x = Archive::Extract->new( archive => shift );
    $x->extract( to => 'tmp' ); # make sure the permissions of this directory is ok