|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re: Need help untangling inheritance and scope in CGI::App module.by gryphon (Abbot) |
| on May 02, 2006 at 00:31 UTC ( #546795=note: print w/ replies, xml ) | Need Help?? |
|
Greetings hesco,
I haven't tested this, but just looking briefly at your code, the first thing I'd try is to change the 8th line of cgiapp_init() to this:
Inside your sub dbh, you shift off the first element of @_, but calling dbh() directly means you're not passing anything into the sub. Calling $self->dbh() will fix this. gryphon
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||