Don't ask to ask, just ask | |
PerlMonks |
Re: MVC question: way to expose APIby starbolin (Hermit) |
on May 11, 2008 at 04:43 UTC ( [id://685923]=note: print w/replies, xml ) | Need Help?? |
Your frontend class, adaptor class, and backend class should be derived classes of the same base class. Then they can inherit the same get_report() member function. That way get_report() is only declared once.
s//----->\t/;$~="JAPH";s//\r<$~~/;{s|~$~-|-~$~|||s |-$~~|$~~-|||s,<$~~,<~$~,,s,~$~>,$~~>,, $|=1,select$,,$,,$,,1e-1;print;redo}
In Section
Seekers of Perl Wisdom
|
|