in reply to indent for Perl?

Check out Perl::Tidy. You can also integrate it into vim and emacs to have it reformat the current buffer or selected region. For emacs integration, see EmacsWiki: CPerlMode