Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Data::Dumper(::Simple) is your friend

by itub (Priest)
on Jul 05, 2005 at 02:43 UTC ( [id://472341]=note: print w/replies, xml ) Need Help??


in reply to Data::Dumper(::Simple) is your friend

I love Data::Dumper and use it all the time, but I think that's not the lesson here. The real lesson is that whenever you print out a value for debugging, you should use clear delimiters. I often do the following:
print "foo=($foo)\n";

You can use whatever delimiters you want, of course, and the best delimiter depends on the kind of values you expect.

Replies are listed 'Best First'.
Re^2: Data::Dumper(::Simple) is your friend
by holli (Abbot) on Jul 05, 2005 at 07:29 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-20 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found