in reply to Re: Eliminating substr warnings
in thread Eliminating substr warnings

Density to time conversion:

If you are as slow as I am, you may be wondering why this works and the original produced a warning.

It's becuase the original produced the warning _after_ the last non-empty string was extracted. No warning is produced when the offset is equal to the string length, hence no warning when the length is a multiple of $size