<?xml version="1.0" encoding="windows-1252"?>
<node id="902602" title="Installing role with Moose::Exporter" created="2011-05-02 20:42:28" updated="2011-05-02 20:42:28">
<type id="115">
perlquestion</type>
<author id="26179">
tilly</author>
<data>
<field name="doctext">
I have a class that I'm writing that uses [cpan://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.&lt;p&gt;

Just to avoid the possibility of an X-Y problem, the reason why I need [cpan://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.</field>
</data>
</node>
