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

What if you use this:

$telnet->waitfor("/$device# /i");   ##wait for prompt

instead of this?:

$telnet->waitfor('/$device# /i');   ##wait for prompt