The Perltidy Home Page

SourceForge Logo

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.

Here are a few examples of reformatted code snippets:

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 be a great help in tracking down errors with missing or extra braces, parentheses, and square brackets because it is very good at localizing errors.


Documentation


Download and Install

Perltidy should run on any system with perl 5.008 or later.
  • Download the latest release at Sourceforge., or
  • Download the latest release at CPAN
  • Perltidy installs in any of the standard methods for modules. Some older Installation Notes are here.

    Links


    Feedback and Bug Reports