Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Access to hash ref element

by Laurent_R (Canon)
on May 28, 2013 at 21:45 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-03-28 22:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found