good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: A script with a loop is running my computer Out of memoryby Lady_Aleena (Priest) |
on Feb 13, 2011 at 18:49 UTC ( [id://887884]=note: print w/replies, xml ) | Need Help?? |
Thanks for that tip, JavaFan. I used it, and you are so right. It is much faster and my memory doesn't run out! Unfortunately, I did come against another error "Range iterator outside integer range". I haven't quite got that figured just yet. I didn't use your exact fragment, but I think it is close enough.
The += did a whole lot of good! I haven't used that construction much in the past, so I don't automatically think of it. Hopefully one day it will sink in. Have a cookie and a very nice day!
Lady Aleena
In Section
Seekers of Perl Wisdom
|
|