in reply to Re: Re: IYHO, what do you consider good code?
in thread IYHO, what do you consider good code?
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: IYHO, what do you consider good code?
by diotalevi (Canon) on Jun 13, 2003 at 23:57 UTC | |
Re: Re: Re: Re: IYHO, what do you consider good code?
by Juerd (Abbot) on Jun 19, 2003 at 09:13 UTC |
In Section
Seekers of Perl Wisdom