perltidy

Automatically indents and reformats Perl scripts for improved readability

brewmacoslinux
Try with needOr install directly
Source

About

Indents and reformats Perl scripts to make them easier to read

Commands

perltidy

Examples

Format a Perl script in-place with backup$ perltidy -b script.pl
Display formatted output without modifying the original file$ perltidy -o formatted.pl script.pl
Check formatting without making changes and show differences$ perltidy -d script.pl