Problems? Is your data what you think it is? | |
PerlMonks |
Re: Expression form of map or grepby tobyink (Canon) |
on Jul 10, 2020 at 21:11 UTC ( [id://11119163]=note: print w/replies, xml ) | Need Help?? |
Generally speaking, the block form is more flexible and more readable, however the expression form of grep is pretty readable if you're just doing a regexp match:
When things get more complicated than that, I'd generally prefer the block form. The expression form can run slightly faster if optimization is a concern.
In Section
Meditations
|
|