in reply to Re: Re: My coding guidelines
in thread My coding guidelines
You wrote:
Since I never use 'not' in my code ... yes. ;)
Since I never use 'not' in my code ... yes. ;)
If not, why not? What do you use instead?
I find not is usually the cleanest and most readable operator for all sorts of tests.
And so forth.die "$usage" if not @ARGV; if (not -r $file) { die "Cannot read $file\n"; } print "$pattern not found in $file\n" if not $found;
--
Regards,
Helgi Briem
helgi AT decode DOT is
|
---|
Replies are listed 'Best First'. | |
---|---|
Re(4): My coding guidelines
by mojotoad (Monsignor) on Nov 29, 2002 at 23:38 UTC | |
by Aristotle (Chancellor) on Nov 30, 2002 at 18:18 UTC | |
by helgi (Hermit) on Dec 02, 2002 at 16:27 UTC |
In Section
Meditations