http://qs321.pair.com?node_id=902602

tilly has asked for the wisdom of the Perl Monks concerning the following question:

I have a class that I'm writing that uses Moose::Exporter. I'd like to be able to force the class that uses it to import an associated role. Is there any reasonable way to do this? The docs suggest that there is, but I'm having trouble making it work.

Just to avoid the possibility of an X-Y problem, the reason why I need Moose::Exporter is to have utility functions that have access to meta. But I'd also like to require that certain other methods are defined. Which is easy to do with a role.