Others have suggested using the if pragma. If you prefer to avoid installing anything new, try:
eval 'use strict' if ($condition);
Update: As halley points out, this won't work for pragmas, such as strict, only for modules.
In reply to Re: turn off strict for production code
by tomhukins
in thread turn off strict for production code
by blahblahblah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |