Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: I usually debug via...

by InfiniteLoop (Hermit)
on Feb 17, 2005 at 04:55 UTC ( #431838=note: print w/replies, xml ) Need Help??


in reply to I usually debug via...

I generally use print to debug my code. I found this style very helpful:

print STDERR __PACKAGE__ . ":" . __FILE__ . "-" . __LINE__ ;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://431838]
help
Chatterbox?
[Discipulus]: why perl -e 'print q(\'a string\'),"\n"' gives -bash: syntax error near unexpected token `)' ??
[Discipulus]: i'm not escaping correctly?
[moritz]: Discipulus] iirc bash doesn't let you escape ' with \
[moritz]: not inside a single-qouted string at least
[moritz]: echo 'a'\''

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2017-11-24 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (346 votes). Check out past polls.

    Notices?