in reply to Re^2: grep exact words
in thread grep exact words

You've probably still got line endings ("\n") on the values in @srvr. See perldoc -f chomp.