![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Re: Re: Re: inlined DEBUG constant versus $DEBUGby derby (Abbot) |
on Sep 19, 2001 at 19:14 UTC ( [id://113364]=note: print w/replies, xml ) | Need Help?? |
stefp,
That's why I tend to favor 'n' over 's'. However, when I debug code that contains I still step through the DEBUG subroutine. Which is what I would expect while debugging. Try: perl -de 'use constant DEBUG =>0; use O qw( Concise -exec); print "toto" if DEBUG; print "toto" if DEBUG' perl -de 'sub DEBUG() { 0 }; use O qw( Concise -exec); print "toto" if DEBUG; print "toto" if DEBUG' -derby
In Section
Meditations
|
|