while (1) { # use a block for structuring things { print "do something, then leave the loop\n"; last; } }