Perltidy Usage
iDog
Perltidy is a handy and powerful tool to arrange PERL code according to your preference.
You can either pass options in command line, or put these options in a '.perltidyrc' file, so that you don't need to type these things every time you use perltidy.
Document of perltidy:
http://perltidy.sourceforge.net/perltidy.html
My perltidy resource file:
# iDog's .perltidyrc
-ce
-l=120
-i=4
-b # make .bak file
-pt=2
-ci=4
-bar # always put '{' to the right of line
-lp
-vt=2
-cti=0
-nsfs
-nolq
-w # warning
-nbl
-nola
-hsc
-csc -cscw -cscp="##" # put '## xxx' after closing '}' of a sub.
-sbl
-wbb="+ - / * ." # break before these operators