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.
In reply to Re: Perl Programming guidlines/rules
by mirod
in thread Perl Programming guidelines/rules
by hakkr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |