Subject: | do not ignore eval errors! |
when you create an instance $obj from an class which is broken ('BrokenClass'), you get an empty
instance back.
my $obj = My::Factory->create('BrokenClass',{foo=>42});
$obj is now blessed to 'BrokenClass', but it has no methods because 'use BrokenClass' failed...
unfortunately this is ignored (in MooseX::AbstractFactory::Role)... this leads to errors which are
nasty to isolate...
my recommendation is to just add 'die $@ if $@;' after 'eval "use $iclass";' (line 25 in
MooseX/AbstractFactory/Role.pm)