in reply to Can't spawn "cmd.exe":

In this case I'm not even asking it to start cmd.exe, but yet it's telling me that it can't spawn it.

A command that requires the shell (such as one contains quotes) causes Perl to invoke the shell. This and related details is documented.

"Can't spawn "cmd": Bad file descriptor at temp2.plx line 11."

Are you checking $! to see if an error occurred? That would be incorrect.

.plx? Do you get the error without whatever packager you are using?

Replies are listed 'Best First'.
Re^2: Can't spawn "cmd.exe":
by emalossi (Novice) on Mar 18, 2009 at 14:30 UTC
    Hi, I'm not sure what you mean by packager. temp2.plx is just a perl script. As I mentioned above, I don't get the error when that program is run directly in the cmd CLI.