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
In reply to Re^2: Spiffy: How to define the constructor to take parameters
by bwagner
in thread Spiffy: How to define the constructor to take parameters
by bwagner
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |