Stories
Slash Boxes
Comments
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

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • There will be no remaining debugging code, not even a $DEBUG var...

    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]... ;-)