moot explained the problem. Here's how to work around it:
my $next = 0; $exp->expect(3600, [ qr/UNKNOWN TABLE/i, sub { my $self = shift; sleep(1); $self->send("abort\r"); $next = 1; }], [ qr/TABLE: $table/i, sub { my $self = shift; $self->send(""); }]); next if $next;
In reply to Re: Next & Last - Perl's Expect
by ikegami
in thread Next & Last - Perl's Expect
by tc1364
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |