TEquality - Trait for adding equality testing to your object
TEquality adds a number of equality testing features, including type-equality as well as object instance equality.
The equalTo method is expected to return either true if its two arguments are equal (by whatever standards your devise), or false if they are not.
equalTo
This is the inverse of equalTo.
This will determine type equality, meaning it will determine if both arguements are derived from the same type.
This will attempt to discern whether or not the two arguments given are the same object. It even takes into account the possibility that the objects might also have utilized the TPrintable trait, and so works around that automatic stringification.
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.