Rather than using a variable, use a constant.
use constant I_AM_DEV => 1;A proper constant lets the Perl compiler optimize away the devepment code when it is switched off - i.e. it runs faster.
In reply to Re: How to turn a "developer code" into a "user code"
by tobyink
in thread How to turn a "developer code" into a "user code"
by mascip
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |