P is for Practical | |
PerlMonks |
Re^2: array pre-allocation trickby Aristotle (Chancellor) |
on Oct 31, 2002 at 19:22 UTC ( [id://209486]=note: print w/replies, xml ) | Need Help?? |
Sounds like you want to have a look at the map function, actually.
my @array = map { do_stuff_with($_); $_ } 1 .. 5000;
Makeshifts last the longest.
In Section
Seekers of Perl Wisdom
|
|