local $_ = q[abc \"$a"bc$xyz$abc$x$y" $bla'h]; s/("(\\\"|[^"])+")/{$_=$1;s|\$|\\\$|g;$_}/ge; print; __END__ abc \"\$a"bc$xyz$abc$x$y" $bla'h
Makeshifts last the longest.
In reply to Re^2: Escape $ inside quotes only (not the solution)
by Aristotle
in thread Escape $ inside quotes only
by eyepopslikeamosquito
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |