In that case you could do a lot worse than perltidy.
In reply to Re^3: read files into 2D arrays and print element? by hippo in thread read files into 2D arrays and print element? by fasoli