in reply to Repeating a substitution
But I'd try to use the c modifier, though not sure if it's allowed with s// or restricted to m///
Cheers Rolf (addicted to the Perl Programming Language and ☆☆☆☆ :) Wikisyntax for the Monastery