On one of our Windows XP machines, Perl system commands such as dir /b generate an error message such as: /b: no such file or directory. In other words, the switch is being interpreted as a filename.
This occurs whether I use backticks, open() or system(). I even tried passing in the switch as a separate arg to system(). Naturally, I have confirmed that the call works correctly on the DOS command line or batch script.
Has anybody else encountered this?