Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Access to hash ref element

by Laurent_R (Parson)
on May 28, 2013 at 21:45 UTC ( #1035742=note: print w/ replies, xml ) Need Help??


in reply to Re: Access to hash ref element
in thread Access to hash ref element

I fully agree. The debugger (and especially the x command to unfold data structure) is of tremendous help for all such cases and has helped me out many times. But, for some reason, many people seem to be afraid to use it, although it is in fact a very simple tool to use. Many questions on many developping forums would never be asked if the OP had "dared" to use the debugger to figure out what is going on. But there is nothing "daring" there, and it is increedibly helpful.

Having said that, the Data::Dumper is also a very useful way of understanding complicated data structure. But for the purpose of debugging, I think the debugger is the right tool.


Comment on Re^2: Access to hash ref element
Re^3: Access to hash ref element
by Anonymous Monk on May 28, 2013 at 22:08 UTC
    the debugger may be great for debugging your own programs, but not particularly friendly for sharing on forums -- Dumper fits that bill better

      Sure, but the OP was asking about his or her own program, or am I wrong?

      And, actually, thinking about it, I don't really agree. I also use the debugger to test code lines used by posters. And it is often quite useful to do that. And faster than saving code and testing it.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2014-10-24 09:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (131 votes), past polls