Hope someone can help me with this. I have a file which has a list of lines. I want to see if those lines exist in a hash. The lines in the file may have wildcards to match multiple entries in the hash. Assume that $var1 is a line from my file. I want the last line in this code to print out a YES I do know that $var1 is not ready(after the substitutions) for checking if it exists in the hash with this code below.I just want to know how to do it.