in reply to Re^4: Illegal division by zero error
in thread Illegal division by zero error
How do you skip empty lines? Perhaps you should remove spaces before (unless your lines have necessary spaces), or detect that the line doesn't have any character other than spaces.
We can't say for sure, not having seen your input, but it could be something like this:
which will skip the line unless it contains any non-space character.next unless /\S/;
|
|---|