That probably is the case. I ran this with trailing blank lines and got the same error. When the blank lines are removed, the error goes away - even using strict and warnings.
The other thing that got rid of another error was to actually define
$count1 as
$count1 = 0. Otherwise I got an error
Use of uninitialized value in numeric ge (>=) at logtest.pl line 47 at the end of the code.
Rich36
There's more than one way to screw it up...