Home / Programming / Perl / How can I get my Perl code indented to look nice?
How can I get my Perl code indented to look nice?
Last updated: 06/16/2009
Well, I found this to work on unix (unless you use a lot of hashes):
indent -br -brs
This helps for occasionally lining up your loops and conditionals, but it's not written for Perl, so it will mess up a few things. There are probably text editors out there with perl mode (emacs, for instance), that would do a better job.