in reply to Re^4: How to check if a variable's value is equal to a member of a list of values
in thread How to check if a variable's value is equal to a member of a list of values
Yes, I would agree that more logic increases runtime, but from your example, are you saying that grep should be faster? Please explain your example, so I understand you clearly.
Personally, I have no idea how grep, map, or ~~ all work "under the hood". In your syntax, I see grep and map both iterating over the list, so my guess was they would have performed equally. I was surprised at my results.
Personally, I have no idea how grep, map, or ~~ all work "under the hood". In your syntax, I see grep and map both iterating over the list, so my guess was they would have performed equally. I was surprised at my results.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: How to check if a variable's value is equal to a member of a list of values
by LanX (Saint) on Mar 26, 2013 at 23:00 UTC |
In Section
Seekers of Perl Wisdom