SPVM::Stringer - Interface Type for Stringing Callback
use Stringer; use Point; my $stringer = (Stringer)method : string ($object : object) { my $point = (Point)$object; my $string = $point->to_string; return $string; }; my $point = Point->new(1, 2); my $string = $stringer->($point);
Stringer is the interface type for the stringing callback.
required method : string ($object : object)
The implementation must receive a object and return the string that represents the object.
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.