PsychoSpunk has asked for the wisdom of the Perl Monks concerning the following question: ⭐ (object-oriented programming)
sub new { my $value1, $value2 = @_; ... }
and
Am I looking for too much here? Or is there just no way to really effectively pull this one off other than putting it in one constructor that does the logic and passes off to other subs based on the values it gets? Thanx. Mikesub new { my $only_value = shift; ... (not the same as above ...) }
Originally posted as a Categorized Question.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I make deterministic constructors?⭐
by btrott (Parson) on Jun 21, 2000 at 23:49 UTC | |
|
Re: How do I make deterministic constructors?⭐
by Perlmage (Acolyte) on Sep 18, 2000 at 19:24 UTC | |
|
Re: How do I make deterministic constructors?
by herveus (Prior) on Aug 29, 2001 at 18:10 UTC | |
by Hofmator (Curate) on Aug 29, 2001 at 18:23 UTC | |
|
Re: How do I make deterministic constructors?
by Anonymous Monk on Jun 28, 2000 at 20:07 UTC |