in reply to Re^2: getting a while loop to terminatein thread getting a while loop to terminate
You may be looking for Perl::Tidy which does an excellent job of pretty printing Perl and is highly configurable.