Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Perl "new" command

by Erez (Curate)
on Mar 01, 2012 at 09:26 UTC ( #957134=note: print w/ replies, xml ) Need Help??


in reply to Re: Perl "new" command
in thread Perl "new" command

n Perl the constructor doesn't have to be named "new"

In Perl no, but OO frameworks like Moose and its derivatives have adopted this convention and use "new" for object instantiation.

Principle of Least Astonishment: Any language that doesn’t occasionally surprise the novice will pay for it by continually surprising the expert


Comment on Re^2: Perl "new" command

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2014-09-22 03:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (178 votes), past polls