in reply to Login failure with net::Telnet

The regular expression that you are using to match the prompt

/[\$%#>]\ $/
is looking for a dollar, hash or pound followed by a space followed by dollar.

To match just a ">", change it to

/>/

non-Perl: Andy Ford