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
    You probably mean qr instead of qx. It is a possible next step.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
      "You probably mean qr..."

      D'oh!. Yes. Holy s**t! I fixed it.

      Regards, Karl

      «The Crux of the Biscuit is the Apostrophe»