http://qs321.pair.com?node_id=11124306


in reply to [Win32] Escaping quotes in perl one liner

cmd.exe escapes double-quotes by doubling them:

perl -le "open(my $x, "">&STDOUT"");"

But usually, I prefer (for this reason) to rewrite oneliners using qq() and q(), which eliminates the need for knowing how to escape in this shell besides needing to know whether to use single or double quotes.