in reply to Re: How do I print a quote with a perl one liner on dos?
in thread How do I print a quote with a perl one liner on dos?
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...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How do I print a quote with a perl one liner on dos?
by larryk (Friar) on Mar 23, 2005 at 11:21 UTC |