Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: construct a standard object oriented program

by darksym (Beadle)
on Mar 30, 2002 at 07:50 UTC ( [id://155412]=note: print w/replies, xml ) Need Help??


in reply to construct a standard object oriented program

Using sub new as a constructor isn't mandatory although it may make sense for purposes of uniformity. sub new {} could just as easily be sub creatething {} as described in the perl manual pages: perlobj, perlmod, perltoot. Recommended reading. If you want even more info, pickup a copy of the book "Programming Perl" (the irreverent Camel Book). This is a good starting point. Also, take a look at other's modules. Learning by example.
  • Comment on Re: construct a standard object oriented program

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-04-20 04:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found