TComparable - Trait for adding comparison abilities to your object
This trait gives your object a wide range of comparison abilities through its overloading of the <=> operator.
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.
$left
$right
This fufills the requirement of the sub-trait TEquality.
Stevan Little <stevan@iinteractive.com>
Copyright 2004, 2005 by Infinity Interactive, Inc.
http://www.iinteractive.com
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Class::Trait, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Class::Trait
CPAN shell
perl -MCPAN -e shell install Class::Trait
For more information on module installation, please visit the detailed CPAN module installation guide.