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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: [Win32] Escaping quotes in perl one liner
by syphilis (Archbishop) on Nov 28, 2020 at 08:30 UTC |