print $^E
| [reply] [d/l] |
Assuming you are on Win32, the whenever print $! reports Unknown error, printing $^E may give you so called "extended error information", ie. the actual win32 error text rather than perl's half hearted attempt to convert every system error to one of the 3 (or is it 5?) catch all POSIX error codes.
In this case, (I'm guessing as your error messages to do not show the line numbersfrom which they originate), that if you added it to the following:
my $res = $ua->request($req) || die $!, $^E;
You might get more information about whatthe problem is.
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] [d/l] [select] |
I'm on Linux (FC5).
So $^E doesn't help :-(
| [reply] |