Consider the following: package MyApp::CGI; use Moose; use MooseX::NonMoose; use Data::Dumper; extends \'CGI::Application\';