Oh sorry.
I do increment $t in my program. Didn't paste that line sorry.
Why do you insist on making it difficult for people to help you? A small working example might have even shown you the solution before you posted the question.
Why are you so mean?? I have a small program and that is not the solution - (the $t increment) I am doing that in my program.
If you have to be condescending and mean just don't respond because it doesn't help me solve my problem.
Thanks!