Re: Replacement using variable

2008-07-25 Thread Mr. Shawn H. Corey
On Fri, 2008-07-25 at 14:27 +0530, V.Ramkumar wrote: > Hi, > > Any one suggest me, what is the error in my below code, Not any error when > run, But unable to get the search value in replacement. > > $content=~s/<$allelm/"<\1 xml:id=".$idseq++/egsi; > > Here $allelm contains element list, (para|

Re: Replacement using variable

2008-07-25 Thread Rob Dixon
V.Ramkumar wrote: > Hi, > > Any one suggest me, what is the error in my below code, Not any error when > run, But unable to get the search value in replacement. > > $content=~s/<$allelm/"<\1 xml:id=".$idseq++/egsi; > > Here $allelm contains element list, (para|quote|list). > > I am getting outp

Replacement using variable

2008-07-25 Thread V.Ramkumar
Hi, Any one suggest me, what is the error in my below code, Not any error when run, But unable to get the search value in replacement. $content=~s/<$allelm/"<\1 xml:id=".$idseq++/egsi; Here $allelm contains element list, (para|quote|list). I am getting output as a junk for \1. Regards, Ramkum