- or download this
my $obj = Module->new(log => $obj, arg1 => $arg1);
- or download this
my $obj = Module->new($log, $arg1, $arg2);
- or download this
my $obj = Module->new($log, %args);
- or download this
sub new {
my $self = shift;
...
# do stuff
}
- or download this
sub new {
my $self = bless {}, shift;
...
sub _log {
return shift->{log};
}