Subject: | unable to generate a usable archive on Win32 platform binary files |
Hello,
I am running activestate 5.6.1 and am having problems with generating a usable archive with this module(compression off and on). As far as I can tell , the module has problems with binary files. Here is the script I used for testing.
use strict;
use Archive::Tar;
opendir(IN,'h:/test') or die"Can't open dir for reading\n";
my @test;
while (defined (my $file = readdir IN) ) {
next if $file =~ /^\.\.?$/;
my $test = "h:/test/$file";
push (@test, $test);
}
Archive::Tar->create_archive('g:/hillr/test.tar',0, @test);
In the test directory, If I have only txt file located there the archive is generated correctly. However, if I put a binary file in the directory the archive is generated but I am unable to extract all of the files in the archive. It's like the module will stop at the binary file and lose anything after that! I hope I have explained this well enough.
perl version is as follows:
This is perl, v5.6.1 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2001, Larry Wall
Binary build 629 provided by ActiveState Tool Corp. http://www.ActiveState.com
Built 12:27:04 Aug 20 2001
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.
I have also similar problems with version 5.8.0
If you have any questions Pls e-mail me!!
Thanks
Ron Hill