in reply to Re: Parse a block of text
in thread Parse a block of text

while (<DATA>) { # logic crystal clear here next unless /$START/ .. /$STOP/; # next if /$START/; # exclude line with START pattern next if /$STOP/; # exclude line with STOP pattern print; }