Hi there monks,
I have a large pluggable application, with lots of modules that use Moose with roles. During some point in time, I would like to traverse all required modules and ask them if they do a certain role $module->does($role).
Does Moose or any of the Meta packages it uses (Class::MOP? Moose::Meta?) can generate a list of modules loaded in memory that implement a role?
Or, aside from Moose, what's the cleanest way to get a list of modules loaded? Is there a hot cpan package out there that does this? Or should I just traverse the ${::} hash? Googling didn't help.
Thanks! -miguel
In reply to find all modules that "do" a role by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |