in reply to Perl script asking question and staying in a loop

elsif { $OCT1_COUNT++; } else (($NUM1 < 1) && ($NUM1 > 10))
Please post the code that you are using; this code does not compile because of syntax errors. The elsif needs a condition, and the else should not have a condition.

Update: The OP has completely replaced the original code since I posted this response.