Help for this page
R:\>set test=hello && echo %test% %test%
R:\>set test=hello && cmd /c "echo %test%" hello
use strict; use warnings; ... }else{ system("test=hello; export test; echo \$test"); }