in reply to Re: shortening substitutions
in thread shortening substitutions

well, this is not equivalent to the OP code. For instance, try applying both to qq("   " foo  ;  )

Anyway, I'm sure the OP code is missing some /.../g regexp modifiers. He should tell us what he really wants to do, and why he wants to write it on a single statement after all.