|Subject:||Out of memory error|
I want to compress a lot of files (37011) and the size of all this files is 1.2 Go. My script use 90% of the memory and it crash with the message "Out of memory". Here is my code : my $size = @files; print $size . "\n"; => 37011 my $tar = Archive::Tar->new(); $tar->add_files(@files); $tar->write($BACKUP_ARCHIVE . ".tar.bz2", COMPRESS_BZIP); Is-it a bug of Archive:Tar ? If not how can I improve this piece of code ?