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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Moose: does not export its sugar to the 'main' package
by merlyn (Sage) on Jun 29, 2010 at 17:12 UTC | |
by toolic (Bishop) on Jun 29, 2010 at 17:24 UTC |