in reply to Re: Perl calling command prompt?
in thread Perl calling command prompt?
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}': $! / $?'";
|
|---|