Subject: | handle undef in errorf/debugf/... |
$log->debugf("%s", undef) currently produces warning: Use of uninitialized value $new_params[1] in sprintf at /usr/lib/perl5/site_perl/5.10.1/Log/Any/Adapter/Base.pm line 45.
Since the printf-style already does something Data::Dumper-like by dumping references, maybe print undef as 'undef' too, like Data::Dumper? This will avoid the above warnings when arguments are undef.
Since the printf-style already does something Data::Dumper-like by dumping references, maybe print undef as 'undef' too, like Data::Dumper? This will avoid the above warnings when arguments are undef.