SPVM::Stringable - A Interface Type to Stringify a Object
class Point { interface Stringable; method to_string : string (); my $x = $sel->x; my $y = $sel->y; my $string = "($x,$y)"; return $string; }; }
Stringable is an interface type to stringify a object.
Interface methods.
required method to_string : string ();
The implementation must return the string expression.
Copyright (c) 2023 Yuki Kimoto
MIT License
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.