Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: curried-up moose

by rodd (Scribe)
on Jan 19, 2009 at 02:51 UTC ( [id://737201]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Body;
    use Moose;
    ...
    print $body->eyes;   ## and they're blue
    $body->eyes(new Eyes(color=>'brown')); 
    $body->eyes->color('green');
    
  2. or download this
    package MooseX::NestedPackage;
    use Moose;
    ...
        ## cos defaults should go directly in each nested attribute
        $attr->{lazy} = 0;  ## lazy stopped working outside due to a missi
    +ng default
    };
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-03-28 16:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found