| 
      
      
      From: Blackstone, J. D. <jda...@ci...> - 2001-11-27 15:07:05
      
     | 
| > Another way would be to use callbacks, e.g.:
> 
>   $exp_obj->expect($timeout,
>                    [ qr"re_pattern" => sub { }],
>                    [ timeout => sub { die "Timeout" }],
>                    [ eof => sub { warn "EOF" }],
>                   );
  Thank you!  I didn't completely understand that I could do that, because I
thought when you passed arrayrefs like that you had to use regexes and
couldn't use the timeout/eof keywords.
J. David
 |