The bug is that 0+ should always return something that is a number. Undef, as you've discovered, isn't a number.-exists $self->{'-value'} ? $self->{'-value'} : undef; +exists $self->{'-value'} ? $self->{'-value'} : 0;
In reply to Re: When numeric conversion overloading goes awry.
by dragonchild
in thread When numeric conversion overloading goes awry.
by dmitri
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |