in reply to Regex perl grep usage string match comparison

Read your config file only once at the beginning and store the content in memory (a hash or an array), before opening and processing the main input file. Don't read the config file for every line of input, this is very likely to be very inefficient.
  • Comment on Re: Regex perl grep usage string match comparison