Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Unbelievably Obvious Debugging Tip

by pelagic (Priest)
on Apr 27, 2004 at 14:16 UTC ( #348492=note: print w/replies, xml ) Need Help??

in reply to Unbelievably Obvious Debugging Tip

100% agreed!
It looks obvious but it's often disregarded anyway.
I even do:
print "str:$str:\n";


Replies are listed 'Best First'.
Re: Re: Unbelievably Obvious Debugging Tip
by diotalevi (Canon) on Apr 27, 2004 at 14:49 UTC
    That misses the point. How would you notice that $str was "foo" and not "foo "?
      It misses the point? On which strings would a set of parens spot something, that would be hard to spot with a set of colons? And what do you use to notice the difference between "foo " and "foo "?


        I originally wrote that with the first one as just "foo". No space. I goofed and wrote them both that way. Also, there weren't a pair of colons - just a leading colon. The trailing whitespace would be invisible.

      foo :foo , or  foo: foo. Both look reasonable clear to me.

      Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2018-04-24 19:30 GMT
Find Nodes?
    Voting Booth?