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