Help for this page

Select Code to Download


  1. or download this
    my %constructors = ( "one" => \One->new,
                         "two" => \Two->new );
    ...
    
        return $consref -> ( @arguments );
    }
    
  2. or download this
    my %constructors = ( "one" => \&One::new,
                         "two" => \&Two::new );
    
  3. or download this
    my %constructors = ( "One" => \&One::new,
                         "Two" => \&Two::new );
    ...
    
        return $consref -> ( $type, @arguments );
    }