Yes, line 15 is a division:
$ratio = $array[3] / $array[4];The division it is attempting is essentially "zero" because it's attempting to process an empty line after the end of the file.
I am not sure what is actually the issue - although I think it may be the issue I specified in the OP - if so, i'm not entirely sure how to compensate for the splitting of lines. I did try to essentially offset $. myself by subtracting '1' from it everytime the elseif loop criteria is met but the error is still returned.
In reply to Re^2: Illegal division by zero error
by TJCooper
in thread Illegal division by zero error
by TJCooper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |