in reply to Re^2: Want END block to run except when usage()/--help invocation
in thread Want END block to run except when usage()/--help invocation
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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Want END block to run except when usage()/--help invocation
by BrowserUk (Patriarch) on Feb 27, 2015 at 09:31 UTC |