in reply to XML::Path Errors

I don't know if this is exactly what you want, but you might want to add this for any cases that you fail to catch.

$SIG{__DIE__} = sub { email_me(shift) };

Where email_me is a subroutine that sends the 1st arg to your email.

Since you're talking about emailing yourself, I assume you're running this unattended. The snippet above in any unattended scripts can save your bacon.