Use the flip-flop operator:
@d = grep{ /^start$/ .. /^end$/ } <hFile>; [download]
In reply to Re: extract range from array of data by BrowserUk in thread extract range from array of data by theleftright