#1) The proper way:
my $obj = Class::Name->new();
#Note the arrow followed by the method name.
####
#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.
####
my $obj = new Class::Name->new();