use List::Util qw(first); my $got_big = first { $_ > 10 } (34,52,67,3,66);
In reply to Re: Check if at least one element of array is bigger than X
by repellent
in thread Check if at least one element of array is bigger than X
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |