----- Original Message ---- > From: Dave Rolsky <auta...@urth.org>
> I would do this ... > has _paragraph_name => ( is => 'ro', builder => '_build_paragraph_name' ); > Then in the parent class: > sub _build_paragraph_name { > die 'This method must be overridden in the child' >} Why not just define a "paragraph" role which requires this? Have it be an interface for composition-time safety (or add extra methods which might need to be shared). package Role::Paragraph; use Moose::Role; requires '_parapgraph_name'; # ... 1; Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog - http://blogs.perl.org/users/ovid/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6