37 sub import { 38 my $target = caller; 39 my $class = shift; 40 if ($INC{'Role/Tiny.pm'} and Role::Tiny->is_role($target)) { 41 croak "Cannot import Moo into a role"; 42 } 43 44 _set_loaded(caller); 45 46 strict->import; 47 warnings->import; 48 49 $class->_install_subs($target, @_); 50 $class->make_class($target); 51 return; 52 }