![]() |
|
XP is just a number | |
PerlMonks |
Re^3: Perl Program - Out of memory?by educated_foo (Vicar) |
on Nov 15, 2013 at 23:10 UTC ( #1062818=note: print w/replies, xml ) | Need Help?? |
You have "foreach" loops 10 deep in that program. If each one runs only 3 times, that's 60,000 iterations of the inner loop. I would seriously consider rethinking what you're trying to do, or how you're doing it, because an O(n^10) algorithm is usually a recipe for disaster.
In Section
Seekers of Perl Wisdom
|
|