Attribute (priv_attr) does not pass the type constraint because: Validation failed for 'Str' with value undef at ./test.pl line 22 Foo::do_stuff('Foo=HASH(0x8d02c18)') called at ./test.pl line 28