my $pattern = join '|', map quotemeta, @lines; $pattern = qr/^(?:$pattern)$/;
In reply to Re: Grep lines from a text file, compare to an array using regex?
by choroba
in thread Grep lines from a text file, compare to an array using regex?
by chaoticbear
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |