in reply to Re: Spiffy: How to define the constructor to take parameters
in thread Spiffy: How to define the constructor to take parameters
This solution works nicely.
Is there a way to use your solution but employing the "spiffy" call to $self->super instead of my $self = bless {}, $class; ?
This would enable to fill in another superclass in the future without having to adapt the constructor.
Thank you
Bernhard
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Spiffy: How to define the constructor to take parameters
by dragonchild (Archbishop) on Oct 29, 2007 at 01:36 UTC | |
by bwagner (Initiate) on Oct 29, 2007 at 07:10 UTC |