- or download this
abc "a\"bc$xyz$abc$x$y" $bla'h, $blah
hello k\$nob
this is "\"'abc$xy$z\"" test "$"
a$$bc "$$abc$xyz$abc$" blah, $$, blah
- or download this
abc "a\"bc\$xyz\$abc\$x\$y" $bla'h, $blah
hello k\$nob
this is "\"'abc\$xy\$z\"" test "\$"
a$$bc "\$\$abc\$xyz\$abc\$" blah, $$, blah
- or download this
my $str = <<'EOS';
abc "a\"bc$xyz$abc$x$y" $bla'h, $blah
...
# Escape $ in quoted fields only.
/^"/ && s/\$/\\\$/g for @fields;
print @fields;