Help for this page

Select Code to Download


  1. or download this
    foreach $x (@regex){
       @bad_matches = grep ! m/$x/, @array;
    }
    
  2. or download this
    foreach my $regex (@regexes) {
      @array = grep { ! m/$regex/ } @array;
    }
    
  3. or download this
    my (@array); # is populated however you originally did
    my (@keepers);
    ...
    }
    # if you want it back on @array, just uncomment:
    # @array = @keepers;