Subject: | defined(@array) is deprecated in Perl 5.16 |
Date: | Sat, 15 Sep 2012 02:12:56 +0200 |
To: | bug-Chart [...] rt.cpan.org |
From: | "Frédéric Buclin" <lpsolit [...] gmail.com> |
When using Chart::Base with Perl 5.16.1, we get:
defined(@array) is deprecated at lib/Chart/Base.pm line 181.
(Maybe you should just omit the defined()?)
defined(@array) is deprecated at lib/Chart/Base.pm line 233.
(Maybe you should just omit the defined()?)
The culprit lines are:
@data = @$rdata if defined @$rdata;
It should be:
@data = @$rdata if @$rdata;
or:
@data = @$rdata if scalar @$rdata;