in reply to overloading core function and non-existing operator
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: overloading core function and non-existing operator
by pg (Canon) on Aug 07, 2005 at 22:53 UTC | |
by tye (Sage) on Aug 08, 2005 at 06:04 UTC | |
by tinita (Parson) on Aug 08, 2005 at 09:54 UTC |