in reply to Re: MooseX-Types warningsin thread MooseX-Types warnings
Can't call method "is_a_type_of" on an undefined value at /Users/io1/p
+tive/Trait.pm line 62.
You're using "DataFromFile" as type in your attribute declaration. You should specify it without the quotes, since your type library will export those as symbols.
You have a comment there saying "won't compile without the quotes," but that should work if you're using commata instead of the arrow.
Also, you don't need to check that your subclass of ArrayRef is an array reference, the Moose type system will do that.
use MyDemoTypes "DataFromFile"; # should be MyTypes "DataFromFile"
DejaVu Sans Mono
Droid Sans Mono
Envy Code R
Source Code Pro
The default, whatever it is
Results (357 votes). Check out past polls.