Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, all! Just wondering, is there a way to make an "or DIE/sub/whatever" statement if Net::Telnet times out? Thanks in advance.

Replies are listed 'Best First'.
Re: Telnet times out
by lidden (Curate) on Apr 12, 2005 at 05:52 UTC
    Yes it dies by default. Read "perldoc Net::Telnet" and search for 'errmode' to get more info.
      Thanks, found it and made it work... How about if the Telnet can't be found? When that happens, it just continues with the current module it's in. :-(