use Util::Underscore; _::croak "$foo must do Some::Role" if not _::does($foo, 'Some::Role');
This module contains various utility functions, and makes them accessible through the "_" package. This allows the use of these utilities (a) without much per-usage overhead and (b) without namespace pollution.
It contains functions from the following modules:
Safe::Isa, which contains convenience functions for
Not all functions from those are available, and some have been renamed.
The module has shipped, and can be installed like
cpanm Util::Underscore. Feedback is of course still welcome.