I'd try : @MakeCmd = ("nmake", "-f", "Nmakefile.mak"); $rc = system(join " ",@MakeCmd);
-----Original Message----- From: meriwether lewis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 05, 2003 7:17 AM To: [EMAIL PROTECTED] Subject: system() call fails Hi Gurus! I'm running Perl 5.004_04 on Win2k. The system() command in the following script is failing with a: "No such file or directory" error. @MakeCmd = ("nmake", "-f", "Nmakefile.mak"); $rc = system(@MakeCmd); print "rc = $rc -> $!\n"; I can change it from an array to a scalar and it will work but I'm having the same problems with other scripts that I cannot change. Any ideas why this is happening? Thanks! Meriwether -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]