Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: A "simple" question regarding accessing a value in a complex data structure.

by gurung (Novice)
on Oct 09, 2013 at 12:48 UTC ( #1057536=note: print w/ replies, xml ) Need Help??


in reply to A "simple" question regarding accessing a value in a complex data structure.

print keys $tgs{articles}{Python}{Programming};


Comment on Re: A "simple" question regarding accessing a value in a complex data structure.
Re^2: A "simple" question regarding accessing a value in a complex data structure.
by ww (Bishop) on Oct 09, 2013 at 13:04 UTC

    Re #1057536:

    print keys $tgs{articles}{Python}{Programming}; # Type of argument to keys on reference must be unblessed hashref or a +rrayref ....
      As choroba commented, i changed anonymous hash to anonymous array, so no key pair value. 'Programming' => q/Expert's Guide to Scala/ , and then, print @{$tgs{articles}{Python}{Programming}};

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2014-12-21 19:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (106 votes), past polls