Help for this page

Select Code to Download


  1. or download this
    use Smart::Match 'all';
    
    if ( 0 ~~ all(@array[0,1]) ) {
        say 'matched';
    }
    
  2. or download this
    if @array[0 & 1] == 0 {
        say 'matched';
    }