note the two colons. This shows you that your string isn't what you think it is. it contains EXACTLY what you typed on the command line. and I'm pretty sure you hit THREE keys to get your "AT" (not counting shift or caps lock).
Then I suggest you look up the chomp method of perl.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors