You forgot to pass in $self in your calls :)
Change these lines:
committoDB;
to:
$self->commitoDB;
In reply to Re: Moose: Can't call method "insertcount" on an undefined value
by stevieb
in thread Moose: Can't call method "insertcount" on an undefined value
by timtowtdi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |