Re: wordswap script (fwd)

2002-09-19 Thread Sudarshan Raghavan
On Thu, 19 Sep 2002, Ramprasad A Padmanabhan wrote: > Thanks > \b .. \b worked fine > > How do I find what charaters come under \b word boundary > perldoc perlre just says \b word boundary Scroll down a few lines from where you read this, you have the info you are looking for. > > is \b equi

Re: wordswap script (fwd)

2002-09-19 Thread Ramprasad A Padmanabhan
Thanks \b .. \b worked fine How do I find what charaters come under \b word boundary perldoc perlre just says \b word boundary is \b equivalent to [^\w\_\-\.] Sudarshan Raghavan wrote: > On Thu, 19 Sep 2002, Ramprasad A Padmanabhan wrote: > > >>Hi All >> >> I am writing a script that wil

Re: wordswap script (fwd)

2002-09-19 Thread Sudarshan Raghavan
On Thu, 19 Sep 2002, Ramprasad A Padmanabhan wrote: > Hi All > >I am writing a script that will replace all instance of a particular > word another in a file > > The only problem is that I want to match only whole words > eg If $str="the there thee that the"; > > I want to change to $st

RE: wordswap script

2002-09-19 Thread Jeff AA
> -Original Message- > From: Ramprasad A Padmanabhan [mailto:[EMAIL PROTECTED]] > Sent: 19 September 2002 11:18 > To: [EMAIL PROTECTED] > Subject: wordswap script > > > Hi All > >I am writing a script that will replace all instance of a > par

wordswap script

2002-09-19 Thread Ramprasad A Padmanabhan
Hi All I am writing a script that will replace all instance of a particular word another in a file The only problem is that I want to match only whole words eg If $str="the there thee that the"; I want to change to $str="abc there thee that abc"; $srcstr = 'the' $dest = 'abc' $str=~s/(