The CPAN package Perl::Tidy provides a command line tool to process and reformat a Perl 5 script or module.

Padre has a plugin called Padre::Plugin::PerlTidy that provides integration with the above module. It uses the default settings of perltidy or the settings of the current project to tidy the current file or the current selection in the editor.


Ticket Resolution Summary Owner Reporter
#1326 fixed Padre-Plugin-PerlTidy and the /a modifier with tools/perltidyrc Alias bowtie
#1091 automatic tidying szabgab
#1063 fixed [PerlTidy plugin] 0.15 lacks translation sources (.po) dam
#935 fixed [PerlTidy plugin] Can't install Padre::Plugin::PerlTidy because of missing "default_plugin_dir" field in Padre::Config sjn
#776 fixed PerlTidy needs -nse and -nst options misterwhipple
#574 wontfix Include the PerlTidy plugin with Padre Standalone szabgab


  1. Create a new document and paste in the following:
    if ( $x eq $y     ) { print 1;
  2. Click on Tools/Perl? Tidy/Tidy? the Active Document
  3. The output window at the bottom is opened and the following is printed:

Perl::Tidy running with default or user configuration

  1. The content now looks like this:
    if ( $x eq $y ) {
    	print 1;
  1. TODO: saved file, redo change,


  • A GUI tool to configure the settings of perltidy (there is very limited implementation already)
  • Allow the user to set "tidy-on-save" so when a file is saved first it goes through a tidy process
Last modified 4 years ago Last modified on Mar 17, 2011, 8:57:09 AM