Your techinque answers the need nicely...
thank you
for(1..$#lines)
{
if($lines$_=~m/^\d+\d+/){
print qq~
....... ...
~;
I guess that `pp~' operates something like a here document?
Can you explain a bit?
In reply to Re^2: Grab 3 lines before and 2 after each regex hit
by HarryPutnam
in thread Grab 3 lines before and 2 after each regex hit
by HarryPutnam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |