There's nothing I can think of and the documentation suggests it's not something that is easy to do.
One could reverse the order so $A_obj is checked first: my $n2 = -$A_obj + $B_obj;. That's obviously not practical, though, and would also need neg overloading on $A_obj (and addition if not already done).
In reply to Re: A little overloading conundrum
by swl
in thread A little overloading conundrum
by syphilis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |