in reply to Making my own control flow structure

Just another quick thought - have you ever seen the Devel::Cover module?

It's designed for something completely different - which is showing which parts of your code have been accessed whilst running your test suite. However, it does produce very nice looking html, showing you which branches of your code have been followed, etc.

This might just do the job!