Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

(dws)Re: Re: simple OO constructor

by dws (Chancellor)
on Sep 23, 2001 at 22:07 UTC ( #114190=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
      sub new {
          my $proto = shift;
          my $self = bless { @_ }, ref($proto) || $proto;
          my $self = shift;
          ... initialization for the base class ...
  2. or download this
      sub initialize {
        my $self = shift;
        # First initialize our inherited aspects
        ... initialization specific to the subclass ...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2015-11-29 13:20 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (750 votes), past polls