in reply to Quote Escape

Perhaps quotemeta. Also, I think you should say "What is a right way?" instead of "What is the right way?" (keeping with the whole TIMTOWTDI thing :P)

And you didn't even know bears could type.

Replies are listed 'Best First'.
Re^2: Quote Escape
by pileofrogs (Priest) on Feb 07, 2009 at 00:11 UTC

    Good point, "What's a right way?"

    Sadly, quotemeta won't work because it will slash-escape all non word characters. So, "Don't do that" would turn out like "Don\'t\ do\ that".