[perl #126973] [BUG] No sink warnings when Inf or NaN is in sink context ( ∞ )

2018-01-13 Thread Zoffix Znet via RT
On Sat, 19 Dec 2015 20:29:14 -0800, alex.jakime...@gmail.com wrote: > Code: > ∞ > > Result: > (no output) > > Same thing with NaN and Inf. I was expecting a warning. > > Something like this: > > Code: > 42 > > Result: > WARNINGS for -e: > Useless use of constant integer 42 in sink context

[perl #126973] [BUG] No sink warnings when Inf or NaN is in sink context ( ∞ )

2018-01-13 Thread Zoffix Znet via RT
On Sat, 19 Dec 2015 20:29:14 -0800, alex.jakime...@gmail.com wrote: > Code: > ∞ > > Result: > (no output) > > Same thing with NaN and Inf. I was expecting a warning. > > Something like this: > > Code: > 42 > > Result: > WARNINGS for -e: > Useless use of constant integer 42 in sink context