- or download this
my $pattern = '\b(?:' . join('|', @tokens) . ')\b';
- or download this
my $pattern = join('|', @tokens);
- or download this
my $pattern = '^(?:' . join('|', @tokens) . ')[^a-zA-Z]*$';
- or download this
#!/usr/local/bin/perl
use strict;
...
}
close($infile);
close($outfile);