Subject: | Weird reference to undef in error message |
$ perl -MMoose -E 'package Foo; use Moose; has x => (is => "rw", writer => "set_x", required
=> 1); Foo->new(x => 1)->set_x'
Attribute (x) is required, so cannot be set to undef at writer Foo::set_x of attribute x (defined at
-e line 1) line 3.
Foo::set_x('Foo=HASH(0x7fe2aabd4aa0)') called at -e line 1