in reply to Re: IYHO, what do you consider good code?
in thread IYHO, what do you consider good code?
Usually when writing debug code, I will use this type of statement (for just the reason above)...
oruse constant DEBUG => 1; ... ... warn "Foo" if DEBUG;
Allows turning it off in one location. Just my $0.02.use constant DEBUG => 1; ... ... my $debugsub = DEBUG ? { warn @_ } : {}; #need to fix stack trace... ... ... &$debugsub(foobar);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: IYHO, what do you consider good code?
by chromatic (Archbishop) on Jun 13, 2003 at 23:51 UTC | |
by diotalevi (Canon) on Jun 13, 2003 at 23:57 UTC | |
by Juerd (Abbot) on Jun 19, 2003 at 09:13 UTC |
In Section
Seekers of Perl Wisdom