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".
In reply to Re^2: Quote Escape
by pileofrogs
in thread Quote Escape
by pileofrogs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |