in reply to How to club different lines of program into one

Create a hash of elements to look for. You already have a list of items fetched from the file. Then read up on the exists function.

This will help - How can I tell whether a certain element is contained in a list or array?
  • Comment on Re: How to club different lines of program into one