Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Advice on style

by GrandFather (Sage)
on Nov 26, 2010 at 00:01 UTC ( #873744=note: print w/ replies, xml ) Need Help??


in reply to Re: Advice on style
in thread Advice on style

Actually users should never:

my $instance = Your::Clever:Module::new();

Instead they should:

my $instance = Your::Clever:Module->new();

which works better with inheritance and is more robust against changes to the OO hierarchy.

True laziness is hard work


Comment on Re^2: Advice on style
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://873744]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2015-07-08 07:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (96 votes), past polls