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