Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Unbelievably Obvious Debugging Tip

by pelagic (Curate)
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";

pelagic


Comment on Re: Unbelievably Obvious Debugging Tip
Download Code
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 "?

      Abigail

        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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2014-09-24 00:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (243 votes), past polls