DESCRIPTIONThis trait gives your object a wide range of comparison abilities through its overloading of the <=> operator.
- compare ($left, $right)
- This method should return -1 if $left is less than $right, 0 if $left is equal to $right, and 1 if $left is greater than $right.
- equalTo ($left, $right)
- This fufills the requirement of the sub-trait TEquality.
AUTHORStevan Little <[email protected]>
COPYRIGHT AND LICENSECopyright 2004, 2005 by Infinity Interactive, Inc.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.