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