On Fri, 22 Dec 2017 17:41:56 GMT, public@khwilliamson.com wrote: > 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[0] better written as > $arrayname[0]" > 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[0]; > 1 > > Error from above code (since 5.22): Cannot printf Inf with 'c' at (IRC) > line 3. Bisection points to: ##### 3396ed3031889b7a6890cbcb14149feb7f1ed41f is the first bad commit commit 3396ed3031889b7a6890cbcb14149feb7f1ed41f Author: Jarkko Hietaniemi <jhi@iki.fi> Date: Sun Jan 25 12:27:44 2015 -0500 infnan: Simplify inf parsing. Accept anything beginning with /^inf/i, but warn if there's trailing stuff. ##### -- James E Keenan (jkeenan@cpan.org) --- via perlbug: queue: perl5 status: open https://rt.perl.org/Ticket/Display.html?id=132645Thread Previous | Thread Next