http://www.perlmonks.org?node_id=1067488


in reply to Re^2: Smartmatch alternatives
in thread Smartmatch alternatives

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