8.169. overload
Lets you substitute class methods or your own
subroutines for standard Perl operators. For example, the code:
package Number;
use overload
"+" => \add,
"*=" => "muas";
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.
Start a Free Trial