|Date:||Fri, 22 Dec 2017 10:41:26 -0700|
|To:||perlbug [...] perl.org|
|CC:||dbook [...] cpan.org|
|From:||Karl Williamson <public [...] khwilliamson.com>|
|Subject:||Array names starting with 'Inf' can be poorly behaved.|
I am posting this for Dan Book, who is having trouble getting email to perlbug through. The build options and version of perl is immaterial here, except since 5.22. When the warning "Scalar value @arrayname better written as $arrayname" is triggered (any time an array slice is used with only one element), this results in an error if the array's name starts with 'inf'. Code to reproduce: use warnings; my @infasdf; my @x = @infasdf; 1 Error from above code (since 5.22): Cannot printf Inf with 'c' at (IRC) line 3.