What I really want is to have the same nice quoting behaviors in my one liners that I am used to in perl. Dos is weird with quotes. I was wondering if there is some kind of workaround.
I would like to be able to do
and have it "just work" (ie, print hello world with double quotes around it) without being in escape-with-backslash hell, ie,perl -e "$helloWorld = '"hello world"'; print "$helloWorld"";
perl -e "$helloWorld = '\"hello world\"'; print "$helloWorld"";
as, with gellyfish's help, I now know to do.
I guess maybe this really isn't *that* "hellish" but it isn't anywhere near as heavenly as perl outside of the dos shell. So, if there is some other trick...
In reply to Re^2: How do I print a quote with a perl one liner on dos?
by tphyahoo
in thread How do I print a quote with a perl one liner on dos?
by tphyahoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |