Well, you question as written makes very little sense, but I'm wondering if you want something like this:
--open FILE, 'myfile.txt' or die "Urgh: $!\n"; while (<FILE>) { if (/START TEXT/ .. /END TEXT/) { # Do something with the text in $_ # This will be one line from the file # after the line containing 'START TEXT' # but before the line containing 'END TEXT' } }
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: Pattern Matching Question (I think)
by davorg
in thread Pattern Matching Question (I think)
by xf86
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |