Main question is still answered. When "path=C:\perl\bin" is already set in the environment variable, why do I get such an error. Why do I need to set other path as asked in the post Here is the error I get C:\perlfiles>perldoc perldoc Can't spawn "cmd.exe": No such file or directory at C:/Perl/lib/Pod/Perldoc.pm l ine 1515. Can't spawn "cmd.exe": No such file or directory at C:/Perl/lib/Pod/Perldoc.pm l ine 1515. Can't spawn "cmd.exe": No such file or directory at C:/Perl/lib/Pod/Perldoc.pm l ine 1515.