Dermot wrote:
Dr.Ruud:
Dermot:

my $instance = new MyClass;

my $instance = MyClass->new;

   MyClass::->new

   MyClass::->new()

So do they all amount to the same thing?

Fundamentally not.

In many practical situations they behave about the same. Until they don't.

The last one is the most explicit one, so use it everywhere where you want to be (and remain) sure.

--
Ruud

--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to