Help for this page

Select Code to Download


  1. or download this
    sub new {
        my($proto, $fields) = @_;
    ...
        # make a copy of $fields.
        bless {%$fields}, $class;
    }
    
  2. or download this
    
    my $singleton;
    ...
    
        return $singleton;
    }
    
  3. or download this
    my $c1 = C->new( foo => 'bar' );
    my $c2 = C->new( foo => 12345 );