Help for this page

Select Code to Download


  1. 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
    
  2. 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
    
  3. 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;