To fix this, you want to check the value of DEBUG inside the BEGIN block, not prior to it.
Update:Thanks, Elian for pointing out my mistake. I was answering why the begin block was executing regardless of the value of DEBUG. I didn't look carefully inside the BEGIN block to see that the OP was trying to 'use' a module in there.
In reply to Re: BEGIN and 'use' question
by jsprat
in thread BEGIN and 'use' question
by legLess
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |