SPVM::EqualityChecker::SameObject - a equality checker to check the equality of adresses of two object.
use SPVM::EqualityChecker::SameObject; my $equality_checker : SPVM::EqualityChecker = SPVM::EqualityChecker::SameObject->new; my $point1 = SPVM::Point->new(1, 2); my $point2 = SPVM::Point->new(5, 6); my $is_equal = $equality_checker->($point1, $point2);
SPVM::EqualityChecker::SameObject is a equality checker to check the equality of adresses of two object.
sub new : SPVM::EqualityChecker::SameObject ()
Create a new SPVM::EqualityChecker::SameObject object.
sub : int ($self : self, $obj1 : object, $obj2 : object)
This method receive tow objects and return 1 if the address of the two object equals, return 0 if not.
To install SPVM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM
CPAN shell
perl -MCPAN -e shell install SPVM
For more information on module installation, please visit the detailed CPAN module installation guide.