| CPAN Ratings (Gamma) Smart-Comments reviews | |
| Home | Search | About | Login |
RSS | Module Info | Add a review of Smart-Comments
2 out of 2 found this review helpful:
This is *indispensable* for developing in Perl for me! If I have no idea what's going on, I'll often work with the debugger. But if I've got a pretty good handle on what the script should be doing, I can throw a quick debugging comment out there and many times it saves time over stepping through the debugger--and finding those bits of code that just don't work the same inside the debugger (it happens).
While I'm working out the details, I typically dump out a value with a smart comment, and then exit the program.
One caveat for some who might find this a stopper, it's a Source Filter. If that doesn't bother you, it's a great tool as an alternative to not have to call in Data::Dumper everywhere and then write the print statement.
John J. Cassidy - 2009-05-28 13:10:26
Was this review helpful to you?
Yes
No
Not only is it useful for debugging, it's also wonderful for implementing scripts where you need a progress bar without going through any trouble.
Something simple like this:
for ( @my_items ) { ### Processing items ---> done
will give you a progress bar just like that.
Jose Alves de Castro - 2008-10-10 03:30:32
Was this review helpful to you?
Yes
No
Review deleted. [I'd rather add print statements actually.]
BKB - 2008-05-10 18:36:17
Was this review helpful to you?
Yes
No
It makes it easy to setup dumping of variables and print statements.
mateus xavier - 2007-04-06 10:06:41
Was this review helpful to you?
Yes
No
|
|
|