|
From: R. H. <rhu...@ih...> - 2002-05-27 05:02:05
|
On Sun, 26 May 2002 22:25:40 +0100
Stephen Quinney <st...@ja...> wrote:
> 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);
Sorry I missed this important distinction. It says it right there
in the man page too....
Thanks.
>
> if you want an undefined time out, i.e. it waits forever to match the
> pattern, you need to state that specifically.
>
> Stephen
>
> _______________________________________________________________
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> _______________________________________________
> Expectperl-discuss mailing list
> Exp...@li...
> https://lists.sourceforge.net/lists/listinfo/expectperl-discuss
>
|