Provision of switching Devel::Cover on/off
问题 While using Devel::Cover in a test code which tests CodeA, does Devel::Cover have an option of switching the coverage off. Is there a way to switch the coverage module on or off as per user? Test code tests CodeA. Devel::Cover commands are embedded in Test code whenever CodeA commands get tested. Does Devel::Cover include any provision where this coverage collection can be switched on or off? 回答1: There is a way to turn coverage on and off at runtime, but it seems that I have forgotten to