in reply to Catching a timeout

According to the Net::Telnet docs you need to use the errmode() method to set it to "return", and then check the error cause there.

Alternatively, you could wrap the whole thing in an eval block, and then test $@.

Michael

Replies are listed 'Best First'.
Re: Re: Catching a timeout
by K_M_McMahon (Hermit) on Dec 05, 2003 at 23:37 UTC
    Thanx, That's exactly what I wanted!

    -Kevin