Subject: | using CGI::Application::Plugin::DevPopup::Log produces a warning |
Hello Rhesa,
I've encountered a bug when using CGI::Application::Plugin::DevPopup::Log.
On every call, a warning message is produced. Exact message depends of
version of Log::Dispatch used. There can be one of following:
Use of uninitialized value in concatenation (.) or string at
C:/bin/dev/perl/site/lib/Params/ValidatePP.pm line 344
Use of uninitialized value in subroutine entry at
C:/bin/dev/perl/site/lib/Log/Dispatch/Handle.pm line 20.
Maybe some others too.
I take some research and found that it appears when
Log::Dispatch::Handle->new is called with IO::Scalar->new with the
reference to undefined value. So, to get rid of this warning, $data in
line 58 of DevPopup/Log.pm should be defined.
Actually, fix is easy, line 58 should be changed this way:
< my $data;
Show quoted text
> my $data = '';
--
Serguei Trouchelle