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...

    map{@{$_}{"b"}}@{{a=>{qaba,q,JAPH,}}}{"a"}

    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