Subject: | Unexpected warning on Perl 5.10.1 |
Date: | Mon, 5 Mar 2018 23:15:21 +0100 |
To: | bug-Log-Dispatch-FileRotate [...] rt.cpan.org |
From: | gora mbow <mbow.gora [...] gmail.com> |
Hello,
I am running Perl 5.10.1 on Linux x86.
Just upgraded to the latest CPAN version of Log::Dispatch::FileRotate
(1.34), and since then I am getting the following warning everytime the
module is loaded.
$ perl -MLog::Dispatch::FileRotate -e 'print
$Log::Dispatch::FileRotate::VERSION, "\n"'
Warning: Use of "localtime" without parentheses is ambiguous at
/usr/local/share/perl5/Log/Dispatch/FileRotate.pm line 650.
1.34
$
I think it should a very simple change to fix the offending line so the
module loads without warning on Perl versions such as mine. I can submit a
Github pull request of you like.
Thanks !
Gora
-----------------------------------------------------------------------
$ uname -a
Linux FRMSMONADM01 2.6.32-573.12.1.el6.x86_64 #1 SMP Mon Nov 23 12:55:32
EST 2015 x86_64 x86_64 x86_64 GNU/Linux
$
$
$ perl -v
This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi
Copyright 1987-2009, Larry Wall
Perl may be copied only under the terms of either the Artistic License or
the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
$