Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Best practices passing database handles, cgi objects, etc.

by scorpio17 (Canon)
on Feb 18, 2014 at 14:27 UTC ( [id://1075340]=note: print w/replies, xml ) Need Help??


in reply to Best practices passing database handles, cgi objects, etc.

Take look at CGI::Application (and its associated plugins) - it uses an object-oriented approach. The code you actually write simply uses $self->session to access the session object, $self->query to access the cgi object, $self->dbh to access the database object, etc.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-03-29 05:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found