Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^5: Real life uses for closures.

by tobyink (Canon)
on Feb 18, 2013 at 20:20 UTC ( [id://1019392]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Real life uses for closures.
in thread Real life uses for closures.

I didn't look at the source code at all - I was just referring to the usage examples in the pod.

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

Log In?
Username:
Password:

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

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

    No recent polls found