Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^4: Moose: return null object

by Corion (Patriarch)
on Apr 19, 2011 at 12:03 UTC ( [id://900091]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Q:\>perl -MMoose -e "package Moo;use Moose; has 'foo' => (is => 'ro', 
    +isa => 'Int'); no Moose; package main; my $bar = Moo->new({foo => 'bo
    +om'});"
    Attribute (foo) does not pass the type constraint because: Validation 
    +failed for 'Int' failed with value boom at g:/Systeme/tools/pe
    ...
            Moose::Meta::Class::new_object('Moose::Meta::Class=HASH(0x1871
    +04c)', 'HASH(0x3ea354)') called at g:/Systeme/tools/perl-5.10.
    0/perl/site/lib/Moose/Object.pm line 25
            Moose::Object::new('Moo', 'HASH(0x12ca3ec)') called at -e line
    + 1
    

Log In?
Username:
Password:

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

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

    No recent polls found