while () { chomp; #do something }