This shows you the differences between two versions of the page.
|
code_formatting_standards [2010/03/16 15:07] dbw2 noet for C, SQL - combine line |
code_formatting_standards [2010/03/16 15:08] (current) dbw2 |
||
|---|---|---|---|
| Line 54: | Line 54: | ||
| ==== perltidy ==== | ==== perltidy ==== | ||
| - | The following options are recommended for using perltidy to format your Perl code: | + | The following options are recommended when using perltidy to format your Perl code: |
| * -b : Backup and modify in place | * -b : Backup and modify in place | ||
| * -ce : Enable the "cuddled else" style | * -ce : Enable the "cuddled else" style | ||
| Example: <code>perltidy -ce -b Object.pm</code> This will tidy Object.pm and move your original to Object.pm.bak. Note that this **will** clobber an existing Object.pm.bak file! | Example: <code>perltidy -ce -b Object.pm</code> This will tidy Object.pm and move your original to Object.pm.bak. Note that this **will** clobber an existing Object.pm.bak file! | ||