Catching non-processed attributes
| Newsgroups | perl.moose |
|---|---|
| Message-ID | <022520082157.21371.47C339D4000880B30000537B221357533304079B089C@comcast.net> |
Hi all, I want to be able to see if a constructor was called with undefined attributes: package Foo; use Moose; has 'foo' => ( 'is' => 'ro', 'isa' => 'Str' ); my $obj = Foo->new( 'foo' => 'bar', 'fake' => 'something'); #I want to be able to see that fake was not processed by the constructor. -- Sincerely Yuri Shtil