in reply to Optimizing Output

The other side of the coin is the usability of your output - If you are writing debugging code for your program - it's (in my opinion) better to write less lines with proper debug/trace information then do 'print "X=$a"' every other line. For that i would recommend using something like 'Log::Agent' module (which btw is great)