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...
In reply to Re (tilly) 1: OO Debugging Schemes (akin to Storable.pm)
by tilly
in thread OO Debugging Schemes (akin to Storable.pm)
by deprecated
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |