Welcome to Perltidy

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 should run on any system with perl 5.008 or later. The total disk space needed after removing the installation directory will be about 2 Mb.



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 test
make install

The INSTALL file has additional installation notes. They are mainly for older sytems but also tell how to use perltidy without doing an installation.



A list of current bugs and issues can be found at the CPAN site https://rt.cpan.org/Public/Dist/Display.html?Name=Perl-Tidy

To report a new bug or problem, use the link on this page .