Net::Telnet question on perl.
Hi All,
Pls. need your help.
I'm using Net::Telnet module on perl inorder to make a telnet connection to device:
...
$telnet= new Net::Telnet(Host=>5.1.1.11,Port=>9000,Timeout=>10);
...
Now, if the Net::telnet succeeded, it's great, but if it failed the script dies after timeout of 10 seconds, and I would like the perl script to go on after this T.O.
Anyone have an idea how to do it, while displaying an error message ilke FAIL to the screen ?
Thanks a lot,
Mush.
|