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();
In reply to Re^2: Best practices passing database handles, cgi objects, etc.
by xtpu2
in thread Best practices passing database handles, cgi objects, etc.
by xtpu2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |