Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
go ahead... be a heretic
 
PerlMonks  

Re^4: Print all derefs and method calls in a directory (Friday golf)

by jepri (Parson)
on Jan 09, 2009 at 10:29 UTC ( #735147=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Print all derefs and method calls in a directory (Friday golf)
in thread Print all derefs and method calls in a directory (Friday golf)

I had to do this statically, because I didn't have full environment to run it in(so no Data::Dumper). I was trying to find the structure of a couple of large state hashes that get passed around, using only what I saw in the code. I'm sorry I wasn't clear about that.

Both you and I might have written the code differently, but I had to tackle what was in front of me. This code has a lot of nested hash derefs, and when they are all listed by the command line, they form a convenient hierachy which shows the keys and sub-keys. A possible advantage over data dumper (in this case) is that it shows which keys are accessed by the program, rather than all the ones that exist.


Comment on Re^4: Print all derefs and method calls in a directory (Friday golf)
Re^5: Print all derefs and method calls in a directory (Friday golf)
by ikegami (Pope) on Jan 09, 2009 at 10:33 UTC

    Both you and I might have written the code differently,

    Again, I didn't comment on that. My only beef was with your statement that everyone uses "->".

    because I didn't have full environment to run it in(so no Data::Dumper)

    I suggest you fix your broken install.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2014-04-21 14:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (495 votes), past polls