in reply to Re: Best practices passing database handles, cgi objects, etc.
in thread Best practices passing database handles, cgi objects, etc.
If I understand the example correctly, then the main program (the one calling MyApp) will look something like this?
use MyApp; my $myapp->new( cgi => CGI->new(), session => CGI::Session->new(), database => DBI->connect() ); print CGI->header().$myapp->do_something();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Best practices passing database handles, cgi objects, etc.
by tobyink (Canon) on Feb 19, 2014 at 07:37 UTC | |
|
Re^3: Best practices passing database handles, cgi objects, etc.
by choroba (Cardinal) on Feb 19, 2014 at 07:40 UTC |