Re: insert keyword

2008-11-11 Thread Sharan Basappa
>> Hi, >> >> I have a string that has value delimited by space >> e.g. 1 2 10 8 etc. >> >> I need to add a keyword wherever there is a space. >> I wrote a small code to try this out: >> >> $str = "one two three"; >> $str =~ s/\s/x /g; >> >> In this case, I am trying to insert x where there is a spa

Re: insert keyword

2008-11-11 Thread Chas. Owens
On Mon, Nov 10, 2008 at 09:26, Sharan Basappa <[EMAIL PROTECTED]> wrote: > Hi, > > I have a string that has value delimited by space > e.g. 1 2 10 8 etc. > > I need to add a keyword wherever there is a space. > I wrote a small code to try this out: > > $str = "one two three"; > $str =~ s/\s/x /g; >

insert keyword

2008-11-10 Thread Sharan Basappa
Hi, I have a string that has value delimited by space e.g. 1 2 10 8 etc. I need to add a keyword wherever there is a space. I wrote a small code to try this out: $str = "one two three"; $str =~ s/\s/x /g; In this case, I am trying to insert x where there is a space. one two three should become