Let's say I have an array called resultList.
I have some elements in this array. (Let's say 1,1,1,1,1,1,0,1,1,1,1,......)
I would like to check if any elements of this array (we don't know the length of the array)
has a a value of 0.
How can I do it in Perl? Are there any Perl functions that does this?
Open in new window
Otherwise you will have to test one element at a time.