Looks like a problem with your prompt pattern.
Update: Or is it? Try changing from double quotes to single quotes in the lines you do the $telnet->cmds.
i.e.: $telnet->cmd(String => '/bin/echo \\\$stuff',
In reply to Re: Net::Telnet, $, and crushed expectations
by Mr. Muskrat
in thread Net::Telnet, $, and crushed expectations
by jcpunk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |