Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Some Moose questions

by stvn (Monsignor)
on Nov 19, 2010 at 22:26 UTC ( [id://872603]=note: print w/replies, xml ) Need Help??


in reply to Some Moose questions

You are confusing core Moose types with MooseX::Types.

Core Moose types (those created with Moose::Util::TypeConstratints are not the same as MooseX::Types created types. If you are not using MooseX::Types, then you will always want to quote your type names because of exactly the documented issue you quoted. However with MooseX::Types, a subroutine is created for you which you can then use as a bareword so quoting is not needed (however you do need to watch out for automagic stringification using the fat comma).

-stvn

Replies are listed 'Best First'.
Re^2: Some Moose questions
by tj_thompson (Monk) on Nov 19, 2010 at 22:46 UTC
    Oooh so let's make certain I understand this then. That means the MooseX::Types::Moose is giving you the core Moose types as MooseX::Types types which then means you don't have to worry about quoting those either, right?

      Yes, exactly.

      -stvn
Re^2: Some Moose questions
by tj_thompson (Monk) on Nov 19, 2010 at 22:38 UTC
    Excellent, that makes me feel better about not using quotes then. I had planned to use MooseX::Types. There's just so much Moose documentation that I was getting confused while I waded through it all. I appreciate you taking the time out to help!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://872603]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-19 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found