in reply to problems with Net::Telnet (i think)

problem B:
and this will probably fall under the ranting and raving category. Why when it times out does it kill the whole script? I didn’t tell it to do that. Does anyone know of a way to fix that?
thanks
  • Comment on Re: problems with Net::Telnet (i think)

Replies are listed 'Best First'.
Re: Re: problems with Net::Telnet (i think)
by JayBonci (Curate) on May 04, 2002 at 21:33 UTC
    Per the Net::Telnet documentation, the default Errmode is "die". You can set it to be "warn" or "print" if you'd like in the contructor:
    my $obj = Net::Telnet->new(Errmode => 'return');


        --jb