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?
|
|---|