Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^5: How do you find keys of a Blessed Hash?

by moritz (Cardinal)
on Oct 08, 2012 at 05:44 UTC ( #997742=note: print w/ replies, xml ) Need Help??


in reply to Re^4: How do you find keys of a Blessed Hash?
in thread How do you find keys of a Blessed Hash?

To the best of my knowledge, //, say and state work as designed, and the design is sound. (The first two are my favorite features from 5.010).

Also it makes you appreciate how hard programming language design is.


Comment on Re^5: How do you find keys of a Blessed Hash?
Download Code
Replies are listed 'Best First'.
Re^6: How do you find keys of a Blessed Hash?
by james2vegas (Chaplain) on Oct 08, 2012 at 07:16 UTC
    Sure, those work fine, but aren't really new work, just syntactic sugar over $x = defined($x) ? $x : $value, a local $\ = "\n" (and print), and a function closed over a variable declared in an outer lexical scope (this is actually superior to the sugar, since you can have multiple functions sharing the same variable).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997742]
help
Chatterbox?
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: (7)
As of 2015-08-03 06:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (25 votes), past polls