Wednesday, February 24, 2010

Perl: "Can't find cmd.exe" worst error message ever

It turns out that it really means "The program that you specified with the system() command couldn't be found". It can be triggered with something like 'system("nonExistent.bat")'.

I spent hours fiddling with the PERL5SHELL variable to no avail before I Googled the answer.

No comments:

Post a Comment