From: "Shawn H. Corey" <shawnhco...@gmail.com>
> I use Data::Dumper a lot, so most of my debugging statements have 
> "Dumper" in them, making them easy to find.  For those that don't, I add 
> "# TEMPORARY" at the end.  And I leave them behind; I just put a "#" in 
> front of them. :)

I tend to not indent them. So they stick out and since pretty much 
all code is indented at least one level in any nontrivial program, I 
only have to look for /^print/.

Whether I leave them behind or not depends on whether I expect to 
need them again. Usually I remove them after I'm done debugging.

Jenda
===== je...@krynicky.cz === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to