Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Moose: Can't call method "insertcount" on an undefined value

by choroba (Cardinal)
on Sep 25, 2016 at 19:56 UTC ( [id://1172580]=note: print w/replies, xml ) Need Help??


in reply to Moose: Can't call method "insertcount" on an undefined value

You forgot to call the committoDB method as a method:
if (defined($commitvalue) && ($commitvalue == 1)) { print "Yes, commit! Commitvalue = $commitvalue\n"; $self->committoDB; # <- HERE } elsif ($counter == $self->commit) { $self->committoDB; # <- and HERE! }

$self was undef because of this, and $self->insertcount had to fail.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^2: Moose: Can't call method "insertcount" on an undefined value
by timtowtdi (Sexton) on Sep 27, 2016 at 10:54 UTC
    Thank you for the clear answer. Problem solved!
    The great mistake is to anticipate the outcome of the engagement; Let nature take its course, and your tools will strike at the right moment.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-19 06:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found