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

Re^2: Getting values in Hash Reference?

by Anonymous Monk
on Apr 24, 2006 at 13:53 UTC ( #545281=note: print w/replies, xml ) Need Help??

in reply to Re: Getting values in Hash Reference?
in thread Getting values in Hash Reference?

*SIGIL*{} is used to dereference, so you don't need the extra %.

Replies are listed 'Best First'.
Re: Getting values in Hash Reference?
by jonadab (Parson) on Apr 25, 2006 at 11:30 UTC

    This gives me a great idea for an obfuscation involving nested hash slice dereferencing of nested anonymous hash references...


    If I nest that sort of nonsense about eight levels deep I might have something genuinely confusing.

Re^3: Getting values in Hash Reference?
by abuomarm (Initiate) on Sep 03, 2013 at 22:40 UTC
    It doesn't work without a qualifier. If you'll use the hash you need the %. If you'll use a value (follow the dereferenced hash by {Key}), you'll need the $.
      This one works perfectly for me $$hash{Key}; this return the value of the Key

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2021-06-25 13:57 GMT
Find Nodes?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)

    Results (136 votes). Check out past polls.