Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Traverse an unknown multi-dimensional hash

by Anonymous Monk
on Jul 12, 2007 at 11:09 UTC ( [id://626196]=note: print w/replies, xml ) Need Help??


in reply to Re: Traverse an unknown multi-dimensional hash
in thread Traverse an unknown multi-dimensional hash

Thanks, your help is appreciated, i've managed to print out what I want working using Data::Dumper. I just needed to testing whether a particular hash holds the information I need. You can "smell" homework all you like but it wasnt the case. Why cant it be a newbie getting to grips with programming, who wants to change some existing code he has found? Half of learning to program is not only writing your own code but understanding and altering existing code, is it not?
  • Comment on Re^2: Traverse an unknown multi-dimensional hash

Replies are listed 'Best First'.
Re^3: Traverse an unknown multi-dimensional hash
by Tomte (Priest) on Jul 12, 2007 at 11:58 UTC

    Why cant it be a newbie getting to grips with programming, who wants to change some existing code he has found?
    It certainly can - therefore I answered with the pointers to the solution GrandFather provided in code - it would have helped you in either case.
    I just needed to testing whether a particular hash holds the information I need.
    Then why didn't you state that in your posting? While printing the whole datastructure and scanning it manually is surly working, solutions to search for particular values/keys in an arbitrary structured hash aren't that hard to achieve either :-)

    Acting as anonymonk and asking seemingly simple to answer questions doesn't help getting a lot of trust in advance, at least with me.

    A newbie getting to grips with programming in Perl could certainly go to alot of places worse than perlmonks, but not that many better suited to advance your skills: Please register an account, read Welcome to the Monastery! Make yourself at home., have a look around - and be indeed welcome.

    regards,
    tomte


    An intellectual is someone whose mind watches itself.
    -- Albert Camus

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-25 14:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found