Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: RFC: Basic debugging checklist

by kyle (Abbot)
on Feb 18, 2009 at 22:05 UTC ( #744895=note: print w/replies, xml ) Need Help??


in reply to RFC: Basic debugging checklist

Another good link for dumping a data structure is How can I visualize my complex data structure?

I agree with the others that vanilla Data::Dumper isn't the best advice.

I find a useful option to B::Deparse is -p to show where precedence rules have bitten me.

I would say use delimiters even when you're not checking for unexpected white space. Which delimiters you use doesn't really matter, but I've most often seen balanced ones.

print "[$foo] >>>$bar<<< {{$etc}}\n";

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://744895]
help
Chatterbox?
[pryrt]: I think I actually like "finished 18", because really, it's been 18years since his birth, so he's finished 18 years. :-)
[jedikaiti]: This is true

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2018-01-18 20:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (214 votes). Check out past polls.

    Notices?