- or download this
while(<>) {
if(/^PORNUM:\s*(\S+)/m) {
...
}
print;
}
- or download this
my %skip = map { $_ => 1 }
qw(PP22x43@.5 PC12x120/25);
- or download this
while(<>) {
next if /^PORNUM:\s*(\S+)/m and exists $skip{$1};
print;
}
- or download this
while(<EXCLUDE>) {
if(/^PORNUM:\s*(\S+)/) {
$skip{$1} = 1;
}
}