In your second example,

But, when run at a DOS prompt, the command: C:\>"echo hello" produces '"echo hello"' is not recognized as an internal or external command, operable program or batch file.
Why is there an expectation that Perl is involved at all? It looks like you threw a string in double quotes at cmd.exe.

If you simply: C:\>echo hello you get: hello because echo is a DOS internal command.

Perhaps your original example didn't need the double quotes?

C:\>perl -e "print STDERR `echo hello`"; produces hello

and I've found that when I wanted double-quotes in my on-liners on Windows, I needed (ready for absurdity?) triple double-quotes.

C:\>perl -e "print STDERR `echo """hello"""`"; produces "hello"


I humbly seek wisdom.

In reply to Re: Quotable Quotes by goibhniu
in thread Quotable Quotes by b4swine

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.