I just tried this in one of my Moose classes and it works for me that way.$result = $build_attribute->type_constraint->is_a_type_of('ArrayRef') +? 'it's an ArrayRef' :'not an ArrayRef';
In reply to Re^3: Problem generating builder functions with Moose for inherited objects
by tospo
in thread Problem generating builder functions with Moose for inherited objects
by Neighbour
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |