package doesnt_matter; use CGI::Prototype; my $derived = Class::Prototyped->newPackage('My::App', ( 'parent*' => 'CGI::Prototype', template => sub { 'blah blah blah' }; ); $derived->activate;