in reply to go back to top of for loop

As others have mentioned, without some more information we can't give you help that is specific to your problem. As a general pointer, though (and in an attempt to teach you how to fish), please see the section entitled "Loop Control" in perlsyn and the individual functions in perlfunc. There are three basic commands:

Please note that there are situations in which the next, last, and redo commands cannot be used (see perlfunc).

HTH