I have setup perl in environment variable PATH as C:\perl\bin;When I execute "C:\perl>perldoc perldoc", I get following error message "C:\Perl>perldoc perldocCan't spawn "cmd.exe": No such file or directory at C:/Perl/lib/Pod/Perldoc.pm line 1515.Can't spawn "cmd.exe": No such file or directory at C:/Perl/lib/Pod/Perldoc.pm line 1515.Can't spawn "cmd.exe": No such file or directory at C:/Perl/lib/Pod/Perldoc.pm line 1515."cmd.exe is set in the "ComSpec" environment variable as "C:\WINDOWS\system32\cmd.exe"Why do I get this error ? How can I get correct output ?
Manish do not see in c:/perl try to see in some other directory for ex c:/perl/bin
If it user defined variables use PATH value equal to".;C:\perl\bin;"Hope it will help.
Just try to put in your path C:\perl\bin\;
... last if system("$pager \"$output\"") == 0;...
$pager
... warn("PAGER: '$pager'\n"); last if system("$pager \"$output\"") == 0;...