If you wrap your Moose class definitions in a BEGIN {} block it should work correctly. This is needed because the Moose "keywords" are just plain perl functions and so in the example you show above, they will not have run prior to your test code running.
Also, _init has no meaning to Moose, you must be looking for BUILD.
In reply to Re^3: Object not created as well with Moose
by stvn
in thread Object not created as well with Moose
by woodpeaker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |