Generally, "sub new" blocks should look like:
sub new { my $proto = shift; my $class = ref($proto) || $proto; my $self = {}; my @args = @_; bless ($self, $class); return $self; }
In reply to Re: perl oo
by mr.nick
in thread perl oo
by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |