in reply to Re: grep keys in hash and retrieve values
in thread grep keys in hash and retrieve values

thank you. yes the context tutorial will help. Now I can retrieve the value, but only for exact matches of the keys. But I want a match if it contains hostB I also tried. $regex=qr/$hostB*/ and $regex=qr/^$hostB/ I also read through a few regular expression tutorials and am even more confused.

  • Comment on Re^2: grep keys in hash and retrieve values