Re: choosing which to join in a given string.

2007-01-19 Thread Rob Dixon
Michael Alipio wrote: my $string = "This is a sentence"; Now, I want to join "is" and "a" by a dash. Any idea how do i do that? using regexp may not be want I want because the real string contains many words, so I have to join several words without using too much regexp substitutions. This

Re: choosing which to join in a given string.

2007-01-19 Thread Ken Foskey
On Fri, 2007-01-19 at 02:08 -0800, Michael Alipio wrote: > Hi, > > my $string = "This is a sentence"; > > Now, I want to join "is" and "a" by a dash. > > Any idea how do i do that? > > using regexp may not be want I want because the real string contains > many words, so I have to join several w

choosing which to join in a given string.

2007-01-19 Thread Michael Alipio
Hi, my $string = "This is a sentence"; Now, I want to join "is" and "a" by a dash. Any idea how do i do that? using regexp may not be want I want because the real string contains many words, so I have to join several words without using too much regexp substitutions. Thanks. __