Query: class::trait::lib::tcomparable
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Class::Trait::Lib::TComparable(3pm) User Contributed Perl Documentation Class::Trait::Lib::TComparable(3pm)NAMETComparable - Trait for adding comparison abilities to your objectDESCRIPTIONThis trait gives your object a wide range of comparison abilities through its overloading of the <=> operator. SUB-TRAITS TEqualityREQUIREScompare ($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.OVERLOADS<=>PROVIDESequalTo ($left, $right) This fufills the requirement of the sub-trait TEquality.AUTHORStevan Little <stevan@iinteractive.com>COPYRIGHT AND LICENSECopyright 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. perl v5.10.0 2010-04-25 Class::Trait::Lib::TComparable(3pm)