perltidy
« Back to VersTracker
Description:
Indents and reformats Perl scripts to make them easier to read
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: perl formatter linter beautifier code-quality developer-tools
Install: brew install perltidy
About:
Perltidy is a powerful Perl source code formatter and beautifier that automatically indents and reformats scripts according to a set of configurable style rules. It parses Perl code to handle complex syntax, including nested structures and embedded documentation, ensuring consistent formatting across teams. The tool significantly improves code readability and maintainability, making it essential for both legacy code modernization and new development.
Key Features:
  • Automatic indentation and reformatting of Perl code
  • Highly configurable style options via configuration files
  • Handles complex syntax, including POD and embedded C code
  • Can output HTML with syntax highlighting
  • Safe operation with detailed error reporting
Use Cases:
  • Standardizing coding style across a development team
  • Refactoring and cleaning up legacy Perl scripts
  • Generating readable HTML documentation from source code
  • Enforcing code quality in CI/CD pipelines
Alternatives:
  • Perl::Critic – Focuses on policy-based code analysis and style enforcement rather than pure formatting, often used alongside Perltidy.
  • clang-format – A formatter for C-family languages, not applicable for Perl syntax.
Version History
Detected Version Rev Change Commit
Sep 12, 2025 5:46pm 0 VERSION_BUMP 871a4ef3
Dec 6, 2024 3:40pm 0 VERSION_BUMP 53b03dcd
Nov 10, 2024 3:02pm 0 VERSION_BUMP c0bbcfa1