good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Adding a lot of small integersby kappa (Chaplain) |
on Jan 10, 2010 at 01:07 UTC ( [id://816564]=note: print w/replies, xml ) | Need Help?? |
Thanks, I like this top-down approach! Somehow, it didn't come to me in the first place. Btw, I managed to squeeze some more time from your second variant by replacing @s = () with @s = (0) x 100. Benefit from pre-allocating memory for all elements, I suppose.
--kap
In Section
Seekers of Perl Wisdom
|
|