A: 

I'm not a Perl programmer, but a quick search of CPAN turned up this: http://search.cpan.org/~teun/Beautifier-0.04/Beautifier.pm

Of course, being "not a Perl programmer," my first response was: http://search.cpan.org/~dconway/Acme-Bleach-1.12/lib/Acme/Bleach.pm

kdgregory
http://search.cpan.org/dist/Acme-EyeDrops/lib/Acme/EyeDrops.pm is better.
Chas. Owens
+22  A: 

PerlTidy makes your code not only tidy, but really beautiful. You can easily tweak it according to your local coding standards.

innaM
+10  A: 

I have used this:

use Perl::Tidy;
sub Format {
    my $source = shift;
    my $result;
    Perl::Tidy::perltidy(
     source      => \$source,
     destination => \$result,
     argv        => [qw(-pbp -nst)]
    );
    return $result;
}
Hynek -Pichi- Vychodil