Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Re: Think for yourself.by zengargoyle (Deacon) |
on Oct 06, 2003 at 05:43 UTC ( [id://296869]=note: print w/replies, xml ) | Need Help?? |
i think map in void context is just fine. if i decided to place my data in a hash for later lookup i just might do so at the end of the first map (instead of returning an array of arrays). i'm sure i wouldn't try and re-craft the code to use a for just to appease. much in the same way i use the 'useless' cat in my shell pipelines.
it's much easier to decide to add more files to the cat (try that with <file ). or to replace the cat with another command that generates the data. why on earth would i continuously rewrite my commands when i can up-arrow and add easily to the beginning?
i'll keep my useless cat and my map in void context thank you much. they're my artifacts of iterative development.
In Section
Seekers of Perl Wisdom
|
|