in reply to Next & Last - Perl's Expect
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;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Next & Last - Perl's Expect
by tc1364 (Beadle) on Apr 28, 2005 at 21:05 UTC | |
by ikegami (Patriarch) on Apr 28, 2005 at 22:11 UTC |