in reply to Re^2: grep exact wordsin thread grep exact words
You've probably still got line endings ("\n") on the values in @srvr. See perldoc -f chomp.