Or if you are lazy, just grab Class::Multimethods. It presents a solution that is more open-closed than using an if-then-elsif-else. For example: you can add multi methods to the subclass without touching the superclass.
In reply to Re: Re: Multiple Prototypes for Object Constructor
by mvc
in thread Multiple Prototypes for Object Constructor
by arunhorne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |