Some hints for coding style.

Perl Best Practices

First of all, there is the book "Perl Best Practices" in the project room, with some style hints in the beginning.


Then I have installed the program "perltidy" in the project room. This will reformat your code.
If you don't like what it does in some points, you can configure it completely with a configuration file. Please read the documentation.

General Rules

Two major points I have seen in most bots:

  • use spaces a lot! between operators, in control structures, after commas, ...
  • never write overlong lines. around 100 characters should be the maximum you can split method calls over multiple lines like:
last change: 2009-12-11 11:23:08 by Darko
Back to Start

Back to Main Page