perl's regexes are not as fast as grep's. But this will do, probably fast enough.my @junk = map {chomp $_; qr/\Q$_\E/} <JUNK>; while (<>) { next if $_ =~ $junk foreach my $junk (@junk); print; }
In reply to Re^2: file substitution
by Berik
in thread file substitution
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |