use strict; use warnings; while (<DATA>) { print if (/d1/ .. /d4/); } __DATA__ a b c d d1 d2 d3 d4 a b d1 d2 d4 a f g
prints:
d1 d2 d3 d4 d1 d2 d4
In reply to Re: Parsing file to pull out sections of text
by toolic
in thread Parsing file to pull out sections of text
by nitehawk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |