I find qq("\Q$x\E") much simpler. And even just "\Q$x\E" handles everything but newline and nul.
- tye
In reply to Re^2: The question hpunixguy2 was too scared to ask - How does he quote shell meta characters (simple)
by tye
in thread The question hpunixguy2 was too scared to ask - How does he quote shell meta characters
by GrandFather
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |