Closed wesm closed 3 years ago
Perl's syntax changed and the script you mentioned uses the now-invalid construct defined(@array)
. It needs to be updated. From the Perl documentation perldoc -f defined
of v.5.22.2
:
Use of "defined" on aggregates (hashes and arrays) is deprecated.
It used to report whether memory for that aggregate had ever been
allocated. This behavior may disappear in future versions of Perl.
You should instead use a simple test for size:
if (@an_array) { print "has array elements\n" }
if (%a_hash) { print "has hash members\n" }
With Perl 5.26, this feature has been removed completely. This is not a bug.
I noticed that cloc.pl (for counting source lines of code) stopped working with the 5.26 upgrade. Any ideas what's wrong?
works fine w/ 5.24