timeconst.pl: remove deprecated defined(@array)
PATCH 1/1 timeconst.pl: remove deprecated defined(@array)
The use of defined() on arrays and hashes has been deprecated since perl 5.6, but until 5.17.6 it only warned on lexicals, not package globals.
Signed-off-by Dagfinn Ilmari Mannsåker <[email protected]>
--- kernel/timeconst.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/timeconst.pl +1 -1
@@ -370,7 +370,7 @@ if ($hz eq '--can') { } @val = @{$canned_values{$hz}}; - if (!defined(@val)) { + if (!@val) { @val = compute_values($hz); } output($hz, @val);
Signature · 1 line
1.7.5.4