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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Smartmatch alternatives
by Anonymous Monk on Dec 17, 2013 at 16:14 UTC | |
by Laurent_R (Canon) on Dec 17, 2013 at 18:52 UTC | |
by LanX (Saint) on Dec 17, 2013 at 22:37 UTC | |
by Laurent_R (Canon) on Dec 18, 2013 at 00:08 UTC | |
by Laurent_R (Canon) on Dec 18, 2013 at 15:55 UTC | |
by davido (Cardinal) on Dec 17, 2013 at 16:19 UTC | |
by tobyink (Canon) on Dec 17, 2013 at 16:29 UTC | |
by davido (Cardinal) on Dec 17, 2013 at 16:37 UTC | |
by tobyink (Canon) on Dec 17, 2013 at 19:04 UTC | |
|
Re^4: Smartmatch alternatives
by LanX (Saint) on Dec 17, 2013 at 16:13 UTC | |
by davido (Cardinal) on Dec 17, 2013 at 16:25 UTC |