in reply to Instance data inheritance?

You're probably looking for "prototypes" (not the Perl sense, but the rest of the world's sense) or "slot-based" objects. Perhaps Class::Prototyped would work for you? I have a brief introduction to them at one of my columns, and they're the basis for my CGI::Prototype, helping me to solve some of the odder problems with relative ease.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.


update: To get you started, here's an example of your problem using Class::Prototyped:
use Class::Prototyped; my $parent = Class::Prototyped->new( DATA => 'Daddy Data', info => sub { my $self = shift; print "Generic data: ", $self->reflect->class->DATA, "\n"; print "My data: ", $self->DATA, "\n"; } ); my @kids = map $parent->new(DATA => $_), qw(aa bb cc); for (@kids) { $_->info; }