in reply to Problem with My New Perl Object
That is, write
instead ofsub new { my $pkg = shift; my $self = bless {}, $pkg;
sub new { my $self = {}; bless $self;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Problem with My New Perl Object
by janx (Monk) on Jun 19, 2002 at 12:49 UTC | |
by dws (Chancellor) on Jun 19, 2002 at 16:35 UTC |