- or download this
if (/gateway/ || /TIMESTAMP/) {
$count = $count + 1;
print OUT;
print "Extracting line ...\n";
}
- or download this
if (/gateway/ && /TIMESTAMP/) {
$count = $count + 1;
print OUT;
print "Extracting line ...\n";
}
- or download this
my ($exclude_re) = map qr/$_/,
join '|',
map quotemeta,
@names;
- or download this
use Regexp::List qw( );
my $exclude_re = Regexp::List->new()->list2re(@names);
- or download this
if (/gateway/ && /TIMESTAMP/ && !/$exclude_re/) {
$count = $count + 1;
print OUT;
print "Extracting line ...\n";
}