good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: how to indent/pretty print perl codeby clemburg (Curate) |
on Nov 02, 2000 at 20:18 UTC ( [id://39665]=note: print w/replies, xml ) | Need Help?? |
Use emacs in batch mode. With this emacs lisp code in file "perl-indent.el":
And this emacs command line call:
This file "try.pl":
turns into:
The call to the ".emacs" initialization file is necessary since emacs won't load it per default in batch mode, and you want your personal indentation preferences to be used, of course.
Christian Lemburg
In Section
Seekers of Perl Wisdom
|
|