Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Multiple "constructors", possible to call several.

by Dog and Pony (Priest)
on Feb 16, 2002 at 20:14 UTC ( [id://145896]=CUFP: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package MyClass;
    
    ...
      
      return undef;
    }
    
  2. or download this
      my $self = MyClass::_new_or_old( shift );
    
  3. or download this
    sub init_stuff
    {
    ...
    }
    
    1;
    
  4. or download this
      my $self = shift;
      if( !$self->{'constructor'}++ )
      {
        $self = Myclass::new();
      }
    

Log In?
Username:
Password:

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

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

    No recent polls found