All apps/Perltidy

Perltidy

perltidy

a perl script indenter and reformatter

Runs as perltidy|macOS, Linux, Windows|perltidy.sourceforge.net

Command form

ai-draft · 2 tasks · 9 fields

Reformat Perl source files. Spacing, tightness and break-control options are left out; use a .perltidyrc for those.

Opens the form; the finished command lands at your prompt, unrun
otty gui perltidy
Tidy Perl codeExample values, fixed in this page — nothing here reaches a terminal
Basic
Perl files*
file
Write to standard output
--standard-output
Advanced
Indent columns
integer
Maximum line length
integer
TasksEach one presets the form for one job
Preview to standard output
filesstdoutindentline_length
Tidy in place
filesin_placeindentline_length
ParametersOnly these flags are editable in the form
Perl files
path · positional 0 · repeatable
Modify in place
Writes the result over each file; the original is kept as .bak.
boolean
--backup-and-modify-in-place-b
Write to standard output
boolean
--standard-output-st
Output file
Only valid with a single input file.
path
--outfile
Indent columns
integer
--indent-columns
Maximum line length
integer
--maximum-line-length
Indent with tabs
boolean
--tabs-t
Quiet
boolean
--quiet-q
Ignore .perltidyrc
boolean
--noprofile
SourcesEvery flag above is checked against these
manual
-o=filename, --outfile=filename -st, --standard-output -b, --backup-and-modify-in-place -q, --quiet -i=n, --indent-columns=n -l=n, --maximum-line-length=n -t, --tabs --iterations=n --noprofile -pro=filename
manualdebian unstable

manpages.debian.org

Before it fills your prompt, Otty checks the installed perltidy against its version. A form that does not match your version is not offered.