package Foo::Role::Bar; use Moose::Role; < ...role implementation code...> package Foo::Role::Bar::Test; use Moose; with 'Foo::Role::Bar'; 1;