Perltidy is a Perl script which indents and reformats Perl scripts to make them easier to read. If you write Perl scripts, or spend much time reading them, you will probably find it useful.
Perltidy is free software released under the GNU General Public License -- please see the included file COPYING for details.
The formatting can be controlled with command line parameters. The default parameter settings approximately follow the suggestions in the Perl Style Guide.
Besides reformatting scripts, Perltidy can help in tracking down errors with missing or extra braces, parentheses, and square brackets because it is very good at localizing errors.
Perltidy Style Key will help in methodically selecting a set of style parameters.
The Perltidy man page explains how to precisely control the formatting details.
The Perl::Tidy man page discusses how to use the Perl::Tidy module
Perltidy should run on any system with perl 5.008 or later. The total disk space needed after removing the installation directory will be about 4 Mb.
The most recent release is always at CPAN
The most recent release is also at sourceforge
Perl::Tidy can be installed directly from CPAN one of the standard methods.
One way is to download a distribution file, unpack it and then test and install using the Makefile.PL:
perl Makefile.PL
make
make test
make install
The INSTALL file has additional installation notes. They are mainly for older systems but also tell how to use perltidy without doing an installation.
The best place to report bugs and issues is GitHub
Bugs and issues can also be reported at the CPAN site https://rt.cpan.org/Public/Dist/Display.html?Name=Perl-Tidy