in reply to How do I make deterministic constructors?
While waiting for an answer, I've been playing
with a few ideas. I've touched on passing hashes
into the constructor, as well as lists. I guess I
was hoping that it could be done in what I view to
be a simplistic way instead of either handling
cases where I look for the existence of x to
determine which route to apply, or by having
multiple methods which are constructors (in the
sense that they bless) that follow no particular
naming convention. Thanks for the confirmation
that I wasn't overlooking something (I'm just now
dabbling in the black arts of Perl OO, and have
not yet purchased the OO Perl book).
|
---|
In Section
Seekers of Perl Wisdom