Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: Perl file operationsby chromatic (Archbishop) |
on Feb 23, 2008 at 04:42 UTC ( [id://669716]=note: print w/replies, xml ) | Need Help?? |
While I don't have a directory with 60,000 files in it to test your code I would guess that <*.txt> is creating such a large list that it runs out of memory. At an estimate of 64 bytes of overhead per SV, 60,000 strings produced by that list will take up 3.6 megabytes of memory, not counting the lengths of the filenames.
In Section
Seekers of Perl Wisdom
|
|