This reads from STDIN, so invoke it like this:my $regex = join '|', @latin_am; while (<>) { print $1 if /$regex/; }
% foo.pl file
In reply to Re: matching an array of alternates
by btrott
in thread matching an array of alternates
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |