in reply to Need a second set of eyes: Very odd failure
bless $self,"NCS::PupptDB::Data"; ^^ missing "e"
Update: Wow, stevieb and I posted within 2 seconds of another :-)
The usual pattern would be:
sub new { my $class = shift; my $self = {}; bless $self, $class; return $self; }
Makes subclassing easier (and avoids this typo ;-) )
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Need a second set of eyes: Very odd failure
by blue_cowdawg (Monsignor) on Nov 17, 2017 at 17:13 UTC | |
by haukex (Archbishop) on Nov 18, 2017 at 10:36 UTC | |
by stevieb (Canon) on Nov 17, 2017 at 17:16 UTC | |
by karlgoethebier (Abbot) on Nov 17, 2017 at 17:32 UTC |