in reply to Calling a custom sub on failure

You can (and should) use forward slashes for path components in Perl.

There's nothing special about die being the right operand of ||. You can use any expression there; it will be evaluated in scalar context. Personally, I prefer the spelled out, low-precedence or for things like this.

Congratulations on being our millionth customer. Due to our computery nature, though, you don't get any special recognition. We're reserving that for our 1024*1024th customer.

The PerlMonk tr/// Advocate