Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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??


in reply to Need help untangling inheritance and scope in CGI::App module.

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:

my $dbh = $self->dbh(); my $result = auth_config($dbh); # ...or instead, simply... my $result = auth_config($self->dbh());

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
Whitepages.com Development Manager (WDDC)
code('Perl') || die;


Comment on Re: Need help untangling inheritance and scope in CGI::App module.
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2015-07-28 09:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls