Wouldn't this work just as well (and be a little more pretty)?
use constant DEBUG => ($ENV{DEBUG} ? 1 : 0); # ...
bbfu
Seasons don't fear The Reaper.
Nor do the wind, the sun, and the rain.
We can be like they are.
In reply to (bbfu) Re: (tye)Re: Conditionally executing debugging code
by bbfu
in thread Conditionally executing debugging code
by ariels
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |