paulehr has asked for the wisdom of the Perl Monks concerning the following question:
The Problem i am having is that when it tries to read the tarball it bombs with a checksum error. I have tried this with several tarballs and they all do the same thing. I can open these fine using winzip and on a solaris machine fine. Has anyone run into this before? or am I missing something? Thanks for the help!#!/usr/bin/perl -w use strict; use Archive::Tar; my $wdir = "U:\\EMM loads"; my $tarballs; my $toc = "toc"; opendir(PWD, $wdir) or die "can't open $wdir: $!"; while (defined($tarballs = readdir(PWD))) { if ($tarballs =~ /\.tar$/) { my $tar = Archive::Tar->new("$wdir\\$tarballs"); $tar->extract_file($toc,$wdir); } } closedir(PWD);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: help with Archive::tar
by jasonk (Parson) on Mar 29, 2006 at 03:50 UTC | |
|
Re: help with Archive::tar
by graff (Chancellor) on Mar 29, 2006 at 06:50 UTC | |
by paulehr (Sexton) on Mar 29, 2006 at 12:58 UTC | |
by graff (Chancellor) on Mar 31, 2006 at 03:12 UTC | |
by paulehr (Sexton) on Apr 03, 2006 at 12:20 UTC | |
by graff (Chancellor) on Apr 03, 2006 at 15:21 UTC | |
| |
by mikeock (Hermit) on Mar 29, 2006 at 15:19 UTC |