since older perls don't seem to synthesize it from overloaded "".
- depend on Scalar::Util, since we use it and older perls don't have
it.
+ - add overloaded eq to Imager::Matrix2d, since older perls don't seem
+ to synthesize it from overloaded "".
+
Imager 0.85_01 - 10 Oct 2011
==============
use Scalar::Util qw(reftype looks_like_number);
use Carp qw(croak);
-$VERSION = "1.009";
+$VERSION = "1.0010";
=head1 NAME
use overload
'*' => \&_mult,
'+' => \&_add,
- '""'=>\&_string;
+ '""'=>\&_string,
+ "eq" => \&_eq;
=item identity()
$out;
}
+=item _eq
+
+Implement the overloaded equality operator.
+
+Provided for older perls that don't handle magic auto generation of eq
+from "".
+
+=cut
+
+sub _eq {
+ my ($left, $right) = @_;
+
+ return $left . "" eq $right . "";
+}
+
=back
The following functions are shortcuts to the various constructors.