Move exception handling closer to call
Move exception handling closer to call
using perl's //
operator (explained in man perlop
)
Logical Defined-Or
Although it has no direct equivalent in C, Perl's "//" operator is
related to its C-style "or". In fact, it's exactly the same as "||",
except that it tests the left hand side's definedness instead of its
truth. Thus, "EXPR1 // EXPR2" returns the value of "EXPR1" if it's
defined, otherwise, the value of "EXPR2" is returned.
requires perl 5.10 from 2007