Unknown error isn't very useful, but the error still has a number.
To get the error number (which you can later look up on msdn) use int (as in
int($!) int($^E)).
C:\>perl -e"$!=122;warn $!; $!=333;warn $!; die int $!"
Unknown error at -e line 1.
Unknown error at -e line 1.
333 at -e line 1.
| MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!" |
| I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README). |
| ** The third rule of perl club is a statement of fact: pod is sexy. |