Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Need a second set of eyes: Very odd failure

by haukex (Bishop)
on Nov 17, 2017 at 17:00 UTC ( #1203681=note: print w/replies, xml ) Need Help??


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

    ack! My eyes must be going on me... THANKS!!!


    Peter L. Berghold -- Unix Professional
    Peter -at- Berghold -dot- Net; Blog: http://blog.berghold.net Warning: No political correctness allowed.

      No problem :-) The only reason I found it so quickly was because for testing I didn't feel like creating the subdirectories and was going to rename the package from NCS::PuppetDB::Data to NCS_PuppetDB_Data, and I was surprised when my "find" didn't match that line... so it was just laziness ;-)

      It happens to everyone :)

      I did not have time at that moment to write out a full blown answer, but haukex's feedback is definitely the way to go when doing native OO in Perl for certain.

      "...My eyes..."

      To be honest: i didn't see it too. I guess i need new glasses ;-)

      «The Crux of the Biscuit is the Apostrophe»

      perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1203681]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2021-12-01 19:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (14 votes). Check out past polls.

    Notices?