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
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
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
> -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
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/(