More important than that it’s faster is that it expresses what happens more directly. With the pattern match, you have to mentally parse the pattern to figure out what is going on. $_ eq 'abc' is much quicker to read.
Makeshifts last the longest.
In reply to Re^2: Array seach
by Aristotle
in thread Array search
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |