Serguei Trouchelle wrote:
> Michael Ellery wrote:
> 
>>> my $arc = Archive::Tar->new('c:/myfile.tgz', 1);
>>> $arc->extract($arc->list_files());
>>>
>>> It works for me just fine with most of CPAN tar.gz distributions.
> 
>> hmmm - I tried this and get the same results (so far I've let it run for
>> 20 minutes max). I wonder if this archive is simply too big for this
>> library to handle (it's about 40 mb, which doesn't seem particularly
>> large to me, but who knows...)
> 
> Actually, yes. It is PP and it stores file contents in memory.
> Even 1MB can too big for Archive-Tar's extract if there's a lot of files
> in it.
> 
> You may want to try extract_file method, it should be faster, or even
> tar.exe from MinGW or UnxUtils.
> 

okay - thanks for the advice. My archive actually contains a single
large file (exe image), so I might still have problems with
extract_file.  My current fall-back plan is to use 7-zip to extract in a
shell command, which seems to work fine.



_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to