- or download this
sub AUTOLOAD {
our $AUTOLOAD;
...
}
- or download this
sub new { # any constructor
my ($proto) = shift;
...
$self = {}; # create a new object
bless($self, $class);
} # new
- or download this
sub new { # any constructor
my $class = shift;
my $self = {}; # or some initializing routine
bless $self, $class;
} # new