Overloading in Perl / Using overload.pm
Other Problems
Our object now handles code like
$half = $quarter + '1/4';
But what about
$half = '1/4' + $quarter;
Perl swaps the order of the operators and passes a flag telling you that it has happened.
[
Title Page
] [
TOC
] [
Prev
] [
Next
]
Page 20 of 31