Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^5: Real life uses for closures.

by tobyink (Abbot)
on Feb 18, 2013 at 20:20 UTC ( #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

Comment on Re^5: Real life uses for closures.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2016-02-14 06:09 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (457 votes), past polls