my @data = grep{ ! /$myfilters/ } @data1; # oder my @data = grep{ $_ !~ $myfilters } @data1;