perlquestion
Anonymous Monk
<p> Howto create a Moose baseclass/superclass/contract? Moose equivalent of [mod://Module::Pluggable]? Favorite way to create base/super class?
<p> The use case is some app that does something with different backends <c>
package iAmInYourIsa;
sub dothis { croak "subclass must implement dothis" }
...
</c>
<p> so one <i>backend</i> is
<c>
package iAmInYourIsa::CGI;
use parent 'iAmInYourIsa';
use CGI;
sub dothis { ... my $q = CGI->new ... $q->param ... }
</c>
<p> another is iAmInYourIsa::Tk and so on and so forth?
<p> I could cobble something using Module::Pluggable, but the verbiage is all wrong :)
3