in reply to How does next label work?

It might be helpful to think of next as jumping to just before the closing brace of the loop/block. Because your next statement is the last statement before the closing brace, it does nothing.