Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: CGI::Application Error

by chipmunk (Parson)
on Nov 18, 2001 at 10:11 UTC ( #126096=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub new {
      my $self = shift;
      my $q = $self->query();
    ...
    
      return $output;
    }
    
  2. or download this
    sub new {
      my $class = shift;
      my %data = { 'member data' => 'initial value' };
      return bless \%data, $class;
    }
    
  3. 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
    }