in reply to Visualisation of environment

I think the best way to do that is to use perl's format capabilities.