in reply to Re^6: Smartmatch alternatives
in thread Smartmatch alternatives
Well, since I'm running Perl 5.18.2, I guess the fact that I have List::Util::any must mean that somewhere along the way I've installed the latest dual-lived version of the module.
Anyway, is there any disagreement that "any" (under whichever banner it marches) is a reasonable utility for determining if any of the elements in an array meets some criteria? If I recall, it's also a PBP recommendation for the same reason I gave: That, unlike grep, it gives an appropriate and clear name to the functionality at work.