use base qw/Exporter/;
use Carp qw(confess);
-use B ();
our @EXPORT_OK = qw(
find_meta
my ($coderef) = @_;
ref($coderef) or return;
+ require B;
+
my $cv = B::svref_2object($coderef);
$cv->isa('B::CV') or return;
if ($i + 1 < $max && ref($_[$i + 1])) {
push @roles, [ $_[$i++] => $_[$i] ];
} else {
- push @roles, [ $_[$i] => {} ];
+ push @roles, [ $_[$i] => undef ];
}
my $role_name = $roles[-1][0];
load_class($role_name);