NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
What about use constant? (Score:1)
Well, you know that use constant doesn't change the behaviour or performance of your program...
use constant DEBUG => 1;if( DEBUG ) {
# debug code is optimised away
# when you set DEBUG to 0
# you can easily check this with B::Deparse
}
Naturally, this adds to the code, but I'd say it's more natural than comments. Or you could use pod: Michael Schwern is working on =for testing, you could as well add =for debug...
Side comment en français: Au fait, maintenant que cvs.mongueurs.net, tu peux faire héberger ton répertoire CVS chez les mongueurs de Perl, avec le site de Marseille, à côté de Log::Procmail [cpan.org] et Games::Golf [cpan.org]... ;-)
Reply to This