in reply to Re^2: use warnings and debug messages
in thread use warnings and debug messages
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; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: use warnings and debug messages
by szabgab (Priest) on Mar 07, 2017 at 19:48 UTC | |
by LanX (Saint) on Mar 08, 2017 at 01:50 UTC | |
by stevieb (Canon) on Mar 08, 2017 at 00:52 UTC |