3. no deliberate obfuscation
s/deliberate//
5. OO always to be used where possible
s/possible/appropriate/
6. Pass by reference
.= ' when appropriate'
9. Do not reinvent wheel always check CPAN
.= ' but do reinvent elliptic wheels'
19. All subroutines to be commented
s/commented/documented/
23. No Global Variables
s/Glo/Needless Glo/
24. use my not local
Repeats 23
28. Do not use $_
WTF? Why not? s/foo/bar/ for @xyzzy;
30. Initialise variables
Repeats 1
32. Where code returns a result it should do so or die with a meaningful error and $!
Always die? Even with errors that aren't fatal?
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
In reply to Re: Perl Programming guidelines/rules
by Juerd
in thread Perl Programming guidelines/rules
by hakkr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |