Help for this page

Select Code to Download


  1. or download this
    #1) The proper way:
    
    my $obj = Class::Name->new();
    
    #Note the arrow followed by the method name.
    
  2. or download this
    #2) The way that may work (i.e. the improper way):
    
    my $obj = new Class::Name;
    
    #Note that the method name comes first and there is no arrow.
    
  3. or download this
    my $obj = new Class::Name->new();