Make it an environment variable and it's even easier:
BEGIN { $ENV{DEBUG} = $ENV{DEBUG} ? 0 : 1; } use constant DEBUG => $ENV{DEBUG};
Update: Good points both responses, though I'm slightly happier with the BEGIN block from a maintenance standpoint.
In reply to Re: Re: Re: IYHO, what do you consider good code?
by chromatic
in thread IYHO, what do you consider good code?
by stonecolddevin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |