in reply to System, exec different behaviour with spaces
You can work around this weirdness by using the following:
perl -e"$prog = 'C:\Program Files\Java\jdk1.6.0_15\bin\java.exe'; exec + { $prog } 'java', '-version'"
It doesn't work if you use the full path after the curlies.
|
|---|