in reply to Re^4: Abusing Map
in thread Abusing Map
I agree, and that's why I like, in particular, the for-loop and, less so, map (and let's just pass over the grep) versions that iterate over ranges of 1 .. $#array or 0 .. $#array-1 and so will never enter the loop
The problem with the map/grep and postfix for is that they generate a list as big as the array.
Small lists: meh! But for big lists -- where big frequently is in the 100s of millions on my machine and billions on client/AWS X1 instances -- those lists cost big time.
Postfix while and until avoid that whilst still giving clean, concise code. Combined with each, its good for big hashes also.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
In the absence of evidence, opinion is indistinguishable from prejudice.
Suck that fhit
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Abusing Map
by AnomalousMonk (Archbishop) on May 17, 2018 at 18:27 UTC | |
by BrowserUk (Patriarch) on May 17, 2018 at 19:03 UTC | |
by AnomalousMonk (Archbishop) on May 17, 2018 at 19:19 UTC | |
by Anonymous Monk on May 17, 2018 at 19:31 UTC | |
by BrowserUk (Patriarch) on May 17, 2018 at 20:09 UTC | |
by ikegami (Patriarch) on May 18, 2018 at 08:14 UTC |
In Section
Seekers of Perl Wisdom