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


in reply to Re^2: config env script help building gradle from perl script (system/open tips needed)
in thread config env script help building gradle from perl script (system/open tips needed)

My suggestion is different because batch files executed by cmd.exe modify the environment of the cmd.exe process they are called in.