http://qs321.pair.com?node_id=485961


in reply to Re: Things I Don't Use in Perl
in thread Things I Don't Use in Perl

I find overloaded operators very useful in the limited context of mathematical objects such as vectors and matrices. They can make these kinds of formulas more legible IMHO: I'd rather have
$z = $x x $y / ($x . $y)
than
$z = $x->cross($y)->divide_by($x->dot($y));
(See the Math::VectorReal module, for example).