Re: s/A/B/ and s/B/C/ but don't want A -> C



On Fri, 28 Dec 2007 20:47:50 +0100 Michele Dondi <bik.mido@xxxxxxxxxxxxx> wrote:

approach anyone can recommend?

MD> Well, similar to yours, except not necessarily with /e (often a hash
MD> is enough):

MD> s/([ABC])/$replacement{$1}/g;

That works too, much faster but it can only do static strings. I didn't
think of it. Thanks.

Ted
.