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.

Documentation

Prerequisites

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.

Download

Installation

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 sytems but also tell how to use perltidy without doing an installation.

Links

FEEDBACK / BUG REPORTS

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