Help for this page
$exp->expect($timeout, [ qr/regex1/ => sub { ... exp_continue } ], );
$first = 1; ... $exp->send("response\n"); } ], );