http://qs321.pair.com?node_id=1170412


in reply to Check multiple array elements for a single condition

You could also use the Smart::Match module with smartmatching:
use Smart::Match 'all'; if ( 0 ~~ all(@array[0,1]) ) { say 'matched'; }
Or you could do exactly the same thing "natively", in Perl 6:
if @array[0 & 1] == 0 { say 'matched'; }
Damian