|Do you know where your variables are?|
Moose::Meta::Class needs a package?by Boldra (Deacon)
|on Jul 11, 2011 at 06:43 UTC||Need Help??|
Boldra has asked for the
wisdom of the Perl Monks concerning the following question:
I'm using Moose::Meta::Class directly to test a plugin interface.
Any my tests share the _make_fake_plugin sub:
Naturally there's quite a few checks in load_plugin which I'm not showing (and the role). Those are what I'm actually testing.
What I'm really curious about, is the need for the Empty package. If I substitute the Empty for Moose directly I get the error:
I stole this syntax from the Moose::Meta::Class tests, (the doc is a bit thin) but I don't understand it. Can anyone explain why this is needed? Is there a cleaner way?