Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: Perl Object Initilization

by PyrexKidd (Monk)
on Jun 11, 2011 at 23:32 UTC ( [id://909274]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl Object Initilization
in thread Perl Object Initilization

This is a simplified version.

In this particular case, you are saying that it is better to pass a hash (or hash ref) and build any attributes/values (using a loop) because if you have an uneven list it will cause a mismatch of keys/values?

on the note of 'initialize as needed', would you define the respective initialization subroutines in the class definition, then call them from the code where you require the object?

Log In?
Username:
Password:

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

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

    No recent polls found