From: Stephen Q. <st...@ja...> - 2002-05-26 21:25:49
|
On Sat, May 25, 2002 at 03:01:26PM -0700, ex...@ih... wrote: > On another topic I think that the case when $timeout is undef > isn't working properly. i.e. I think it's getting defined > anyway but it's defined to the expect expression. I think something is > getting shifted off but shouldn't be. I was seeing under debug > that it was trying to subtract (line 612) using the expect string. I wonder if what you are doing here is $t->expect(,'-re',$pattern); or $t->expect('-re',$pattern); instead of $t->expect(undef,'-re',$pattern); if you want an undefined time out, i.e. it waits forever to match the pattern, you need to state that specifically. Stephen |