From: Blackstone, J. D. <jda...@ci...> - 2001-11-26 21:13:39
|
I'm trying to figure out how to handle a timeout. If I understand correctly, I can determine if a call to expect() timed out by examining the second value in the return value list, e.g.: my(undef, $error) = $exp_obj->expect(10, "thisstring"); The documentation seems to say that when "thisstring" is not found in 10 seconds, $error will contain the string "1:TIMEOUT" . Do I have this correct? Thanks. J. David Blackstone |