Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 musing on the Monastery: (6)
As of 2014-08-23 18:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (178 votes), past polls