Josef Karthauser
|
c5bb0e9394
|
Scripts should contain a comment block describing what the script does.
|
2000-10-19 18:18:35 +00:00 |
|
Josef Karthauser
|
22bbcf38a7
|
Reference Larry Wall's perlstyle man page, and recommend it's use where
entries in this guide don't override it.
Requested by: markm
Comment on tabulation style.
|
2000-10-18 21:57:37 +00:00 |
|
Josef Karthauser
|
e6e692447c
|
Use 'unless' instead of 'if (! ... )' where it improves readability.
|
2000-10-18 18:01:35 +00:00 |
|
Josef Karthauser
|
32d219825c
|
Opening braces should be at the end of the controlling line. Else
and elsif belong on the same line as the closing brace for the
previous if or elsif block.
Suggested by: des
|
2000-10-18 17:48:10 +00:00 |
|
Josef Karthauser
|
a2a307a14d
|
Contract a statement that's too verbose.
|
2000-10-18 17:34:43 +00:00 |
|
Josef Karthauser
|
a669270dee
|
There are enough examples of using 'my $var = ...' definitions, so remove
one.
|
2000-10-18 17:32:21 +00:00 |
|
Josef Karthauser
|
a4d70fdb47
|
All variables should be commented.
Local variables should be separated from function arguments by a
blank line.
Suggested by: des
|
2000-10-18 17:25:59 +00:00 |
|
Josef Karthauser
|
ab6f5f0d9c
|
Make subroutine prototypes mandatory.
The main code should be wrapped in a MAIN:{ ... } declaration.
Suggested by: des
|
2000-10-18 17:21:54 +00:00 |
|
Josef Karthauser
|
d17bce98be
|
Fix the places that I missed last commit: 'vars' not 'var'.
|
2000-10-18 17:12:07 +00:00 |
|
Josef Karthauser
|
e77c53b0be
|
Correction: 'use vars ..' not 'use var'.
Submitted by: des
|
2000-10-17 15:50:22 +00:00 |
|
Josef Karthauser
|
e79ac7ee3a
|
Reclarify variable definition blocks.
Ask programmers to use modules where possible instead of reinventing
the wheel.
Use 'chomp' not 'chop' please.
Fixup some mdoc.
|
2000-10-17 15:32:57 +00:00 |
|
Josef Karthauser
|
3194300995
|
An initial draft of a style guide for perl scripts in the tree.
|
2000-10-17 02:51:03 +00:00 |
|