Windows provides $ENV{COMSPEC} to denote the shell, much like unixish OSes have $ENV{SHELL}, so a better way on Windows is to launch $ENV{COMSPEC}:
system($ENV{COMSPEC}) == 0 or warn "Error launching '$ENV{COMSPEC}': $! / $?'";
In reply to Re^2: Perl calling command prompt?
by Corion
in thread Perl calling command prompt?
by Ans
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |