Re: substitution from line in context to matched line

2008-08-14 Thread tony
On Aug 14, 5:48 am, [EMAIL PROTECTED] (Rob Dixon) wrote: > - isn't an implicit array. Where did you read that? It's a read > operattion on the STDIN file handle. > Does this program help? > > Rob I was unclear, sorry about that. You're correct I meant there is an implicit 'loop' (not array!) wit

Re: substitution from line in context to matched line

2008-08-14 Thread John W. Krahn
tony wrote: Hello, Hello, gnu grep -C allows for output in context to the matched line is there an updated way to do this in perl using $. == $linenumber + context? I looked into the other thread that mentioned it, but none of the scripts worked. I tried the -00 switch and regex backreferenc

Re: substitution from line in context to matched line

2008-08-14 Thread Rob Dixon
tony wrote: > > gnu grep -C allows for output in context to the matched line is there an > updated way to do this in perl using $. == $linenumber + context? I looked > into the other thread that mentioned it, but none of the scripts worked. > > I tried the -00 switch and regex backreferences with

Re: substitution from line in context to matched line

2008-08-14 Thread Xavier Mas
El Wednesday 13 August 2008 22:45:46 tony va escriure: > Hello, > > gnu grep -C allows for output in context to the matched line > is there an updated way to do this in perl using $. == $linenumber + > context? > I looked into the other thread that mentioned it, but none of the > scripts worked. >

substitution from line in context to matched line

2008-08-14 Thread tony
Hello, gnu grep -C allows for output in context to the matched line is there an updated way to do this in perl using $. == $linenumber + context? I looked into the other thread that mentioned it, but none of the scripts worked. I tried the -00 switch and regex backreferences with $1, etc but thou