So is your objective to be able to enable use warnings;?
Perhaps write a sig handler for warn, and evaporate (or do something else with) all uninit warnings?:
use 5.010; use strict; use warnings; $SIG{__WARN__} = sub { my $w = shift; if ($w !~ /uninitialized/){ warn $w; } }; my $x = 23; my $y; debug("x='$x' y='$y'"); sub debug { say shift; }
In reply to Re^3: use warnings and debug messages
by stevieb
in thread use warnings and debug messages
by szabgab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |