No, I meant List::Util::any.
$ perl -MList::Util -E 'say "Yes" if List::Util::any { $_ == 42 } @{[q +w/1 3 42 5/]}' Yes
It shows up in both modules. There may be subtle, undocumented differences.
Dave
In reply to Re^3: Smartmatch alternatives
by davido
in thread Smartmatch alternatives
by cavac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |