in reply to Check multiple array elements for a single condition
You could also use the Smart::Match module with smartmatching:
Or you could do exactly the same thing "natively", in Perl 6:use Smart::Match 'all'; if ( 0 ~~ all(@array[0,1]) ) { say 'matched'; }
Damianif @array[0 & 1] == 0 { say 'matched'; }
In Section
Seekers of Perl Wisdom