http://www.perlmonks.org?node_id=847148


in reply to Moose: does not export its sugar to the 'main' package

You're loading Mouse instead of your module with the same name.

You could rename the module, or use

perl -I. script.pl

Note that newer versions Mouse no longer throw that error. You still need the rename your module to get it to load, though.

Update: Added workaround.
Update: Added note.