http://www.perlmonks.org?node_id=887359


in reply to Re: exec always invokes the shell? win32
in thread exec always invokes the shell? win32

You are seeing the "$" before the 1/2 due to a timing issue

That has nothing to do with the question. Pay attention to the quotes.

I am passing exec a list. At what point does "1 2" turn into "1" "2"? Perl does not split arguments on whitespace, that is something cmd.exe does.