in reply to Re: More than one pattern match using grep on a file
in thread More than one pattern match using grep on a file

For very simple patterns, you can squeeze out some extra speed by using Regexp::Trie. If the patterns are more complicated Regexp::Assemble or Regexp::Optimizer are something to look into.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics
  • Comment on Re^2: More than one pattern match using grep on a file