in reply to OO Debugging Schemes (akin to Storable.pm)
BTW you have a typo. You clearly want ||=, not |=. (Logical or, not bitwise.)
As for your package, the right way IMHO to do it is to have a method or function for debugging that you can call, that you always call, and have that test the debug level against the level to output the warning for...
|
|---|