in reply to More than one pattern match using grep on a file
my $large_pattern = join '|', @PatternList;
Simple and just cool! But why not $large_pattern = qx($large_pattern); $large_pattern = qr($large_pattern);?
Update: Fixed annoying typo.
Best regards, Karl
«The Crux of the Biscuit is the Apostrophe»
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: More than one pattern match using grep on a file
by choroba (Cardinal) on Apr 04, 2014 at 16:27 UTC | |
by karlgoethebier (Abbot) on Apr 04, 2014 at 17:20 UTC |