Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Multilayer dereferencing question

by Anonymous Monk
on Mar 13, 2018 at 13:57 UTC ( #1210823=note: print w/replies, xml ) Need Help??


in reply to Multilayer dereferencing question

Sorry I copied it over wrong, the print statement should be  print(@$$hash_s{'key'});

Replies are listed 'Best First'.
Re^2: Multilayer dereferencing question
by choroba (Bishop) on Mar 13, 2018 at 14:04 UTC
    @$$hash_s{key} is a shorter way of writing
    @{ ${ $hash_s } }{key}

    but you need

    @{ ${ $hash_s }{key} }

    which is usually written

    @{ $hash_s->{key} }
    as the arrow operator is more readable than the circumfix dereference.

    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1210823]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2018-06-18 23:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (111 votes). Check out past polls.

    Notices?