Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: MooseX-Types warnings

by phaylon (Curate)
on Oct 04, 2010 at 21:00 UTC ( #863436=note: print w/replies, xml ) Need Help??


in reply to Re^2: MooseX-Types warnings
in thread MooseX-Types warnings

You're using "DataFromFile" as type in your attribute declaration. You should specify it without the quotes, since your type library will export those as symbols.

You have a comment there saying "won't compile without the quotes," but that should work if you're using commata instead of the arrow.

Also, you don't need to check that your subclass of ArrayRef is an array reference, the Moose type system will do that.


Ordinary morality is for ordinary people. -- Aleister Crowley

Replies are listed 'Best First'.
Re^4: MooseX-Types warnings
by j1n3l0 (Friar) on Oct 06, 2010 at 18:16 UTC
    Thanks for your insight.

    I've discovered the root of my problem was a typo in package Foo:

    package Foo; ... use MyDemoTypes "DataFromFile"; # should be MyTypes "DataFromFile" ...
    All works now (with your suggestions). I knew it would turn out to be something trivial. Thanks again :)


    Smoothie, smoothie, hundre prosent naturlig!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://863436]
help
Chatterbox?
Discipulus was outside The Clash concert in 1985..
[marto]: Wolfsbane , now I'm having flashbacks
[choroba]: Isn't Using PerlPod Creatively rather a meditation?
[choroba]: I don't see a question
[1nickt]: ugh, I stuck my head in the bass bin for 30 seconds on a dare at Ted Nugent at Hammersmith Odeon. Yes, I am 40% deaf now.
[johngg]: My daughter is incredibly jealous of my wife who got to see The Clash at Brixton many years ago. They went to see The Vaccines there recently.
[1nickt]: But the bands are even louder! I saw Spearhead (Michael Franti) at an outdoor show and had to walk a mile away to not feel pain in my chest! Babies were crying ... I asked the sound engineer why it was necessary to have the bass so loud and he laughed...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2017-03-24 12:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (301 votes). Check out past polls.