That is, write
instead ofsub new { my $pkg = shift; my $self = bless {}, $pkg;
sub new { my $self = {}; bless $self;
In reply to Re: Problem with My New Perl Object
by dws
in thread Problem with My New Perl Object
by arunhorne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |