I am using Expect.pm verison 1.15 (latest release) to automate a login process. Everything works fine but I was working on the error handling routine and wanted to find out how to catch the "received" sting(s) single or multiline - i.e. while "expecting" a result, if no match, I want to print what was actually received versus what was expected. I have used the function exp_error() but that only gives 1:TIMEOUT, which really does not give me any information because this will always be true when the expected string does not match the received string.
Please advise.