why not logging? print are inserted and removed, but log stays on, useful for production environment where you may not want to, or can't change the code. I now almost always use Log::Log4perl, you can put debug/info/error statements all over the code, and turn them on/off from a configuration file.