Using cgi::app, I end up beginning each runmode subroutine like this:
sub thisform {
my $self = shift;
my $dbh = $self->param('dbh');
my $q = $self->query;
...
I know it's not a huge pain to do this, but is there a better way to
have each sub automatically know about $dbh, $q, etc. Is this a good
idea? stupid question?
- Re: [cgiapp] global(?) variables Joel Gwynn
- Re: [cgiapp] global(?) variables Mark Stosberg
- Re: [cgiapp] global(?) variables Sam Tregar
