while() { if (/START/ .. /STOP/ ) { print unless /(START|STOP)/; } } __DATA__ 1 2 START 3 4 5 STOP 6 7