in reply to Comparing string to array elements
the code looks good for me,
try to show a minimal working (and intended) example reading text from DATA and having @terms populated.
personally I would code it with something like
$clause= join "|", @terms; print $1 while m/UP($clause)LB/g;
(untested)
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Comparing string to array elements
by R56 (Sexton) on Jan 11, 2017 at 18:55 UTC | |
by toolic (Bishop) on Jan 11, 2017 at 19:04 UTC | |
by R56 (Sexton) on Jan 13, 2017 at 14:58 UTC | |
by R56 (Sexton) on Jan 13, 2017 at 15:03 UTC | |
by hippo (Archbishop) on Jan 13, 2017 at 15:34 UTC | |
by Lotus1 (Vicar) on Jan 13, 2017 at 21:14 UTC |