Class::MakeMethods::Template::Class - Associate information with a package
package MyObject; use Class::MakeMethods::Template::Class ( scalar => [ 'foo' ] ); package main; MyObject->foo('bar') print MyObject->foo();
These meta-methods provide access to class-specific values. They are similar to Static, except that each subclass has separate values.
Creates methods to handle a scalar variable in the declaring package.
See the documentation on Generic:scalar for interfaces and behaviors.
Generic:scalar
Creates methods to handle a array variable in the declaring package.
See the documentation on Generic:array for interfaces and behaviors.
Generic:array
Creates methods to handle a hash variable in the declaring package.
See the documentation on Generic:hash for interfaces and behaviors.
Generic:hash
To install Class::MakeMethods, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Class::MakeMethods
CPAN shell
perl -MCPAN -e shell install Class::MakeMethods
For more information on module installation, please visit the detailed CPAN module installation guide.