in reply to sub any
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.
|
|---|