sub new { my $self = shift; my $q = $self->query(); my $output; my $dbh = $self->param('dbh'); return $output; } #### sub new { my $class = shift; my %data = { 'member data' => 'initial value' }; return bless \%data, $class; } #### sub new { my $class = shift; my $self = $class->SUPER::new(); # call CGI::Application's new method # do your own initialization, as desired }