Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: construct a standard object oriented program

by darksym (Beadle)
on Mar 30, 2002 at 07:50 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2021-10-19 00:27 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (76 votes). Check out past polls.