in reply to Re^2: A useful use of goto
in thread A useful use of goto

It seems that while the if modifier doesn't introduce a scope, the for modifier does (probably to localize $_). So, my suggestion isn't going to work. :-(.