Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^2: Access to hash ref element

by Laurent_R (Abbot)
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.

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1035742]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2017-05-27 15:57 GMT
Find Nodes?
    Voting Booth?