Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Object Constructors - Advice of experienced OO Perl Monks

by ides (Deacon)
on Oct 06, 2005 at 15:01 UTC ( [id://497952]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub new { 
        my ($class, %args) = @_; 
    ...
    
        return( $self );
    }
    
  2. or download this
    sub new { 
        my ($class, %args) = @_; 
    ...
    
        # anyother initialization here 
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-19 15:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found