in reply to Pattern matching with hash
Do this before any loop. In the loop, you can now use $pat where you would have used your original pattern, and you'll find the entries you desire.my $pat = join "|", map quotemeta, @emailcrit; $pat = qr/$pat/; # compile it once
-- Randal L. Schwartz, Perl hacker
|
|---|