See How do I post a question effectively? and define $line before, and after
In reply to Re: detection in Loop condition by Anonymous Monk in thread detection in Loop condition by maha