XP is just a number | |
PerlMonks |
Moose - two augmented methods in one classby roman (Monk) |
on Jan 09, 2012 at 12:15 UTC ( [id://946995]=perlquestion: print w/replies, xml ) | Need Help?? |
roman has asked for the wisdom of the Perl Monks concerning the following question: I have a subclass extending parent class method via inner() and augment
I want to add another augmentable method, which content is not mandatory, i.e. I don't want to supply augment in every subclass.
But if I don't supply the content of head method in subclass then the content of html method is used:
So is it possible to use more than one augmentable method, with some of them having "optional" content? Thanks for any reply including those: "You should not do this, ..." Roman
Back to
Seekers of Perl Wisdom
|
|