in reply to Perl CGI on WinXP - Dos 'bad file descriptor'

Here is my guess as to why this FAD:

The "Time" function is embedded into cmd.exe.

If you run perl from the command line, "cmd" is already running. From CGI, it looks for "time.exe" or time.cmd , which does not exist. Try doing it this way:

my $time = `cmd /c time /t` || die "Time failed: $!\n";

     "There are only two truly infinite things. The universe and stupidity, and I'm not too sure about the universe"- Albert Einstein