Class::Plain::Base - Provide Constructor
Class::Plain::Base
This module provides a constructor new.
new
my $object = Class::Plain::Base->new(%args); my $object = Class::Plain::Base->new(\%args);
Create a new object. The implementation is the following.
sub new { my $class = shift; my $self = ref $_[0] ? {%{$_[0]}} : {@_}; bless $self, ref $class || $class; }
To install Class::Plain, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Class::Plain
CPAN shell
perl -MCPAN -e shell install Class::Plain
For more information on module installation, please visit the detailed CPAN module installation guide.