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?


Reply via email to