Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Moo different parameters for constructorby tobyink (Canon) |
on May 17, 2019 at 14:00 UTC ( [id://11100174]=note: print w/replies, xml ) | Need Help?? |
As others have suggested, BUILDARGS will do the job. Personally, I think you should consider:
There's no reason to force them all to happen through the same constructor method. #1 and #3 would just be wrappers for #2.
In Section
Seekers of Perl Wisdom
|
|