in reply to Re: Quotable Quotes
in thread Quotable Quotes

I disagree. That is why I showed the first part of the question, where I wrote "echo hello" with the quotes to a DOS shell. The DOS shell would find this command illegal, yet perl does not.

Also the second example has two identical commands. One works (without parentheses), one does not (with the (v1) in parens). If we open a DOS shell, they both work. So whatever the difference is, it is on the perl side, not in the command processor.

Replies are listed 'Best First'.
Re^3: Quotable Quotes
by Anonymous Monk on Sep 07, 2007 at 11:43 UTC
    Perl is not involved
    C:\>perl -e "print @ARGV" "a r g v" a r g v C:\> C:\>perl -e "print @ARGV" "\"a r g v\"" "a r g v" C:\> C:\>"echo 1" '"echo 1"' is not recognized as an internal or external command, operable program or batch file. C:\> C:\>cmd /C "echo 1" 1 C:\> C:\>cmd /C "\"echo 1\"" '\"echo 1\"' is not recognized as an internal or external command, operable program or batch file. C:\>
      C:\>cmd /C ""echo 1"" '"echo 1"' is not recognized as an internal or external command, operable program or batch file. C:\>
Re^3: Quotable Quotes
by m0ve (Scribe) on Sep 07, 2007 at 11:13 UTC
    my $hmm =`perl "My Echo (v1).pl"`; print $hmm;

    works btw ;)