Help for this page

Select Code to Download


  1. or download this
    @a[ grep { $pat[ $_ % @$pat ] } 0..$#a ]
    
  2. or download this
    sub filter_by_pat {
       my $pat = shift;
    ...
    }
    
    filter_by_pat [0,1,1,0], ...