Is there a way to dynamically disable 'use strict' and/or 'use warnings' at run-time?
Do not use the -w switch then, use warnings instead: # <- edited, see BrowserUK's correct comment below.
use strict; use warnings; # ... no strict; no warnings 'uninitialized'; # only specific warnings switched off. # un-refined code use warnings 'uninitialized'; # escape to safety use strict;
You don't need to switch off strict for the case in question, though.
Cheers, Sören
Créateur des bugs mobiles - let loose once, run everywhere.
(hooked on the Perl Programming language)
In reply to Re^3: Want END block to run except when usage()/--help invocation
by Happy-the-monk
in thread Want END block to run except when usage()/--help invocation
by CoVAX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |