McA has asked for the wisdom of the Perl Monks concerning the following question:

Hi all,

I had a reference to a very good article explaining why you should use

Class->new();
in favour of
new Class();
And now I can't find it anymore. (Argghh)

Can someone point me to an article explaing the subtle difference?

Best regards
McA

Replies are listed 'Best First'.
Re: Reference needed (Class->new() versus new Class() aka indirect object notation)
by Anonymous Monk on Feb 27, 2013 at 12:20 UTC
Re: Reference needed
by McA (Priest) on Feb 27, 2013 at 12:49 UTC

    Thank you all for the fast responses!

    Sometimes I can't find the right words for all the search engines.

    Best regards
    McA