Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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?
[choroba]: timestamps are hard
[1nickt]: not all all yet
[1nickt]: the stable subversion of each major version on the platform I have in my hands most of the day
[Tux]: choroba can't you up the default stack size to 17?
[1nickt]: and I will maybe add the other subversions
[1nickt]: I am on MacOSX and there is a sore lack of testing resources for CPANTS I think
[choroba]: Tux Why? It works for me with 16 :-)
[Tux]: and the defailt is 15?

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2017-09-19 20:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (228 votes). Check out past polls.

    Notices?