Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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

by ikegami (Pope)
on Jun 29, 2010 at 16:37 UTC ( #847148=note: print w/replies, xml ) Need Help??

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.

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
    It's a bit unfortunate that my tutorial on Moose also uses Mouse, which can now cause conflicts. In my defense, Mouse was invented much later. :)

    -- Randal L. Schwartz, Perl hacker

    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

      Now we have to hope and pray that nobody spins off another variant named Mousse.

      It sounds a lot like Moose and is spelled a lot like Mouse. (I already checked CPAN:)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://847148]
Discipulus more.. and count cloaked monks..
shmem joins the club
[Discipulus]: welcome back to Tkperlmonks virtualsue! ;=)
[virtualsue]: I missed my 17 year anniversary
[erix]: a virtualanniversary , seems apt enough :P
[marto]: :(
[Discipulus]: we can remedy: ♪♫ Happy monkday to you, Hapymonkday virtualsue..♫..
hippo waves at the other 6
NodeReaper sees 10 souls

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2018-04-24 11:05 GMT
Find Nodes?
    Voting Booth?