perl script to format output files for wiki/trac page