Catching non-processed attributes

[email protected]
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.