Re: Prepend + to search words



On 3/29/07, Grant <emailgrant@xxxxxxxxx> wrote:

Hello, how can I prepend a "+" character to each of the words in a
string? For example, "big blue widgets" should be changed to "+big
+blue +widgets".

I'd probably use an s/// (substitution) on the string. Match a word,
replace it with the plus sign and the word. Have you tried that?

Cheers!

--Tom Phoenix
Stonehenge Perl Training
.