in reply to GOTO or not GOTO

It's not a question of being "perliticaly correct". The intention of your code is inherently less readable if you use a goto. In addition, placing your code in a subroutine