in reply to Re^6: Can't spawn "cmd.exe":
in thread Can't spawn "cmd.exe":

One swallow does not a summer make :)

Are you talking about dir being unique, or cmd being unique? :)

I agree it's sensible to use system("cmd", $args). Note that it doesn't generalize to system($prog, $args). Try perl "-l foo.pl", for example.