Overloading in Perl / Using overload.pm
Reversed Operands
sub add { my ($l, $r, $rev) = @_; ... }
This makes no difference for commutative operators (e.g.
+
and
*
), but makes a difference for non-commutative operators (e.g.
-
and
/
)
[
Title Page
] [
TOC
] [
Prev
] [
Next
]
Page 21 of 31