while () { next LOOP if /^%/; #process segment here }