Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^3: Localizing hash keys in an AoH

by tobyink (Abbot)
on Mar 15, 2013 at 22:58 UTC ( #1023791=note: print w/ replies, xml ) Need Help??

in reply to Re^2: Localizing hash keys in an AoH
in thread Localizing hash keys in an AoH

It could be made more readable. Defining entire packages within a sub is a trick I'm fond of, but I'm aware it's not everybody's cup of tea.

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

Comment on Re^3: Localizing hash keys in an AoH

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2015-11-28 19:10 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (743 votes), past polls