in reply to (tye)Re: Conditionally executing debugging code
in thread Conditionally executing debugging code

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.