Perltidy reads a Perl script and writes an indented, reformatted script. The default formatting closely follows the recommendations in perlstyle(1). Perltidy can also display perl code in syntax- colored HTML output. If you want your code to conform to style.perl(7), you should use: perltidy -i=8 -t -pt=2 -bt=2 -sbt=2 -ci=4 -noll -sfs -nasc -ce (Written by knu) WWW: https://metacpan.org/release/Perl-Tidy WWW: http://perltidy.sourceforge.net/