> I'm using ActiveState v5.8.4 on Windows XP Home03. > > Here is the entire script... > print `dir /s`; > print "\n-----\n"; > system('dir /b'); > print "\n-----\n"; > exec("dir /w"); > print "\n-----\n";
Since dir is a built-in, you should do this: use strict; print qx!cmd /c dir /s!; print "\n-----\n"; system('cmd /c dir /b'); print "\n-----\n"; system("cmd /c dir /w"); print "\n-----\n"; I do hope this is for testing, and that you won't be shelling out to dir in your script, as anything dir does can be done in pure Perl. Luke -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>