|Welcome to the Monastery|
Re: use warnings is complainingby LanX (Sage)
|on Aug 15, 2018 at 13:42 UTC||Need Help??|
Your data has empty fields, I suppose they are meant to signify zero. So add this after unpacking.°
That's why you get this warning, because Perl can't know what your real intentions are.
Please note how accurate the warning is, it gives you the data line and the code line...
°) I just realized that since you are using unpack you get an empty string not undef (like a regex would).
Hence adding 0 will continue giving you a warning.
So better use the $inc ||= 0 approach here, like AnoMonk suggested