in reply to Perl Programming guidelines/rules
This looks like a good start.
I would add a couple of rules about variables:
And (of course!) I would argue with a couple of you rules :
14. Any reused code block above 5 lines must become a sub routine
5 lines can be a _LOT_ of code! The risk with that kind of rule is that some people might read it as "it's fine to cut'n paste up to 4 lines of code" or even "don't bother writing a sub that's less than 5 lines"
28. Do not use $_
$_ should not be abused but it has its uses and can make some blocks of code much clearer.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Perl Programming guidlines/rules
by pdcawley (Hermit) on Nov 22, 2002 at 13:20 UTC | |
by mirod (Canon) on Nov 22, 2002 at 13:49 UTC | |
by pdcawley (Hermit) on Nov 22, 2002 at 15:02 UTC | |
by mirod (Canon) on Nov 22, 2002 at 15:33 UTC | |
Re: Re: Perl Programming guidlines/rules
by Mr. Muskrat (Canon) on Nov 21, 2002 at 13:11 UTC | |
by perrin (Chancellor) on Nov 21, 2002 at 14:26 UTC |