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. The formatting process involves converting the script into a string of tokens, removing any non-essential whitespace, and then rewriting the string of tokens with whitespace using whatever rules are specified, or defaults. This happens in a series of operations which can be controlled with the parameters described in this document.
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.
This is free and open source software.
Website: perltidy.sourceforge.net
Support: GitHub Code Repository
Developer: Steve Hancock
License: GNU General Public License v2.0
Perltidy is written in Perl. Learn Perl with our recommended free books and free tutorials.
Related Software
| Perl Linters | |
|---|---|
| Perl::Critic | Extensible framework for creating and applying coding standards |
| Perltidy | Indents and reformats Perl scripts |
| zarn | Static security analysis for source code and dependencies |
| perl-lsp | Language Server Protocol implementation for Perl |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.