while () { last if //; } while () { last if //; s/^\s*//; #<- new line here print ; }