in reply to Backreference woes

I actually understand how to do this kind of thing, but not when I'm as tired as I am now. I think this works as you want, but I'll leave it to others to explain why:
$count = ($textIn =~ s/$searchExp/"\"$replaceExp\""/goee);

Replies are listed 'Best First'.
Re: Re: Backreference woes
by bemfica (Initiate) on Jan 02, 2004 at 04:47 UTC
    Wow! Thanks for the reply, this is excellent. I will do some reading on the meaning of "e" - I though I'd got it, but need to work out the reason for its doubling... Again, many thanks.

    A.