http://www.perlmonks.org?node_id=744919


in reply to RFC: Basic debugging checklist

Always, always print variables with visible delimiters so it's crystal clear when the values contain white space.

print "title: ($title)\n"; print "title: '$title'\n";

This goes for log files too, or anything that isn't presented to end users, really.

In general, a good mindset when composing error reports or debug info is to spend five extra seconds to consider what the programmer is going to need to diagnose or recover from the problem.

/J