I think you'd be better off just patching Class::PObject to handle this situation.
Something like the following should do the trick:
sub Class::PObject::Template::__props { my $self = shift; my @isa = ref($self) || $self; while ( scalar @isa ) { my $target = shift @ISA; no strict 'refs'; if ( my $props = ${ $target . '::props' } ) { return $props; } else { push @isa, @{ $target . '::ISA' } } } }
In reply to Re: Re: Re: Inheriting from Class::PObject
by simonm
in thread Can't inherit subroutines - workaround?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |