![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Pushing Element Multiple Times to Arrayby Anonyrnous Monk (Hermit) |
on Feb 13, 2011 at 09:15 UTC ( [id://887840]=note: print w/replies, xml ) | Need Help?? |
Unlike with the respective map solution, this allows you to use self-documenting variable names, and it also scales better performance-wise (both memory and execution time). (Some people still prefer to use map — presumably because it allows them to show they've grasped basic functional programming concepts (or so, I guess).)
In Section
Seekers of Perl Wisdom
|
|