As described in the Perl Cookbook:
Just replace BEGIN PATTERN and END PATTERN as needed for your data.while (<>){ if (/BEGIN PATTERN/ .. /END PATTERN/){ #line falls between BEGIN and END in the text. } }
In reply to Re: Fetch data between markers
by DrPeter
in thread Fetch data between markers
by penantes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |