Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^5: Moose is lovely

by nothingmuch (Priest)
on Feb 29, 2008 at 20:09 UTC ( #671280=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Moose is lovely
in thread Moose is lovely

Wonderfully. There's even a shortcut for that: lazy_build => 1. It works like this:

has foo => ( ... lazy_build => 1, ); sub _build_foo { my $self = shift; ... }
-nuffin
zz zZ Z Z #!perl


Comment on Re^5: Moose is lovely
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2014-12-18 01:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (41 votes), past polls