You want overload; its doc is quite good so I am not going to attempt a rehashed synopsis.
I recommend you take a good look at PDL before you go ahead with what you're doing though.
In reply to Re: perl vs. C++ operators
by Your Mother
in thread perl vs. C++ operators
by holyghost
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |