Perl Formatter

Indent Perl scripts and tidy their spacing.

Perl Formatter

.pl

Paste text or open a file to see the result.

What it does

Indents Perl scripts and evens out the spacing in blocks and expressions. Old Perl is often dense and hard to follow, so a clean layout helps when you need to fix or extend it. The script works the same.

About the .pl format

.PL file extension

.pl Perl Script

Developer Files

File Type
Perl Script
Developer
Larry Wall
MIME
text/x-script.perl

A .PL file extension is used by the Perl scripting language. It is a program that is used to automate tasks on a computer or server.

Perl Formatter questions

How do I use the Perl Formatter?

Paste the text into the Input box or open a file, set the options, then copy or download the result.

Does renaming a file to .pl change its format?

No. The extension only tells programs what to expect, and the content of the file stays the same. To change the format, convert the file. The .pl page lists programs and converters for it.