I think you're misunderstanding the meaning of overloading, at least in Perl. Overloading does not mean (re)-defining a core operator, but rather extending it to work on instances of particular classes. IOW, what you found with your Number class is exactly the way overloading is supposed to work in Perl.
the lowliest monk
In reply to Re: overloading core function and non-existing operator
by tlm
in thread overloading core function and non-existing operator
by pg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |