You could still use the List::MoreUtils 'any' by not importing it and calling it with the package name.
use List::MoreUtils; # no import list! # ... if (List::MoreUtils::any { defined $a[$_] } @c) {
And yes, the List::MoreUtils::any does stop processing the list as soon as the condition is met.
In reply to Re: sub any
by kyle
in thread sub any
by FFRANK
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |