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 (Cardinal) 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,