I think it's cause you're settingthe error mode too late. Try
$cs = Net::Telnet::Cisco->new( Timeout => 3000, Host => $router_IP, Errmode => "return", );
In reply to Re: net telnet cisco; how to handle unable to connect
by ikegami
in thread net telnet cisco; how to handle unable to connect
by dhunt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |