in reply to Re: system() implementation on Windows (again)
in thread system() implementation on Windows (again)
Yes, tried that. And guess what... I get arguments split (by spaces) before the executable specified in the system() call is run.
So if this is the content of my "main" perl script:
my $txt = '/w my > text >= [with] \ symbols " /wabc/def (xyz)'; system($^X, 'joined-echo.pl', $txt, 'ARG2');
...Then this is the output:
/w||my||>||text||>=||[with]||\||symbols|| /wabc/def (xyz) ARG2
As one can see, the perl called by system() does not get 2 arguments - as I would expect - but much more. Mhmm.
In Section
Seekers of Perl Wisdom