|
|
| "be consistent" | |
| PerlMonks |
Re^2: using smartmatch for range matchingby LanX (Saint) |
| on Nov 25, 2023 at 18:10 UTC ( [id://11155825]=note: print w/replies, xml ) | Need Help?? |
|
IMHO it's also MUCH more efficient than the smartmatch, which will check against every element of a potentially huge temporary array, instead of just the boundaries.
EditAnd certainly better readable. Saying so, having an in LIST operator wouldn't harm, but that's not the demonstrated use case.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||