Perl code refactoring

Dear LazyPerl,

Does anyone know of a module that can do Perl refactoring, perhaps a PPI based module? I've heard Padre can do Perl code refactoring, but looked through the distro and didn't see any interesting modules.

The goal here is to hand a module to a function, and have it come back refactored according to a Perl::Critic policy.

Hugs,

Phred

6 Comments

I think you'll need to be more detailed as to what kind of policy you're thinking about.

maybe you look for App-EditorTools?

Maybe you're thinking of perltidy?

You could try Padre with the perl::tidy module installed. Not perfect, but it does a fair job of things.

AFAIK, such feature is planned by Perl::Critic developers fro certain policies, but it is not yet implemented.

Leave a comment

About Phred

user-pic I blog about Perl and mod_perl.