Help for this page

Select Code to Download


  1. or download this
    Object obj = new Object( param1, param2 );
    
  2. or download this
    my $obj = new Object( $param1, $param2 );
    
  3. or download this
    package Constructor;
    use strict;
    ...
    }
    
    1;
    
  4. or download this
    $ perl -MData::Dumper -I. -MConstructor -le '$obj = Constructor({ foo 
    +=> 1 }); print Data::Dumper::Dumper($obj);'
    $VAR1 = bless( {
    ...
                     'baz' => '',
                     'foo' => 1
                   }, 'Constructor' );