in reply to Re^4: Problem with Net::Telnet
in thread Problem with Net::Telnet

It looks like you forgot to chomp the line entered by user.
It's also useful to protect arbitrary data in regexes by putting them between \Q and \E.
Sorry if my advice was wrong.