Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^3: Localizing hash keys in an AoH

by tobyink (Abbot)
on Mar 17, 2013 at 00:32 UTC ( #1023862=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

Indeed, but you don't really need to wait for the guard to go out of scope. It's just a blessed object, so you can call $guard->DESTROY manually any time you like.

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
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (13)
As of 2015-12-02 07:38 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (36 votes), past polls