Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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.

Replies are listed 'Best First'.
Re^2: A "simple" question regarding accessing a value in a complex data structure.
by ww (Archbishop) 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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2017-06-29 05:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (653 votes). Check out past polls.