Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^5: Check if at least one element of array is bigger than Xby ikegami (Patriarch) |
on Apr 08, 2010 at 02:01 UTC ( [id://833426]=note: print w/replies, xml ) | Need Help?? |
The entire list is visited with the any and the first solutions too (although the check function is only called until a match is found). for (@a) is saved due to the an optimisation that prevents the flattening of the list if it consists of just an array. Update: Added reference to newly added first solution.
In Section
Seekers of Perl Wisdom
|
|