Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 perusing the Monastery: (13)
As of 2015-07-03 11:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (51 votes), past polls