See the overload pragma, which allows you that.
Also, note that assignment is not really overloadable and some other caveats to overload.
In reply to Re: perl vs. C++ operators
by Corion
in thread perl vs. C++ operators
by holyghost
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |