in reply to prettyfy hashes
Not sure if it is what you specifically want, but you could check out perltidy. It cleans up source code pretty good and is configurable.