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.
no warnings 'uninitialized'; # only specific warnings switched off.
# un-refined code
use warnings 'uninitialized'; # escape to safety
You don't need to switch off strict for the case in question, though.
Créateur des bugs mobiles - let loose once, run everywhere.
(hooked on the Perl Programming language)