Subject: | error and exp_error functions are not the same. |
Hi,
The following is the test code for this issue.
$ perl -MExpect -e '$e=Expect->spawn("ls"); $e->log_stdout(0); $e->expect(5, [ /NOT_MATCH/ => sub {} ]) or print "[".$e->exp_error."] [".$e->error."]\n";'
[3:Child PID 19627 exited with status 0] [-1]
https://metacpan.org/pod/Expect#object-exp_error-or is correct ?