|Pathologically Eclectic Rubbish Lister|
[Win32] Escaping quotes in perl one linerby syphilis (Bishop)
|on Nov 28, 2020 at 06:48 UTC||Need Help??|
syphilis has asked for the wisdom of the Perl Monks concerning the following question:
Why does the one-liner throw that error ?
Having escaped both double quotes I expected the one liner to behave in exactly the same way as the script - ie to simply silently exit.
I know that replacing the double quotes with singles works around the issue:
But is there a way to retain the use of double quotes and still get the one-liner to DWIM ?