The dir command has a /b switch that can be used to get just the filenames which can be useful for this kind of thing.
If you literally just want an array with the result, then my @allfiles = `dir * /s`; should do the trick. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, October 28, 2005 2:18 PM To: beginners perl Subject: Dir Command to an array Hello I would like to execute a dir */s command in windows and save the output into an array. I know I can do this in perl by doing executing the following command in a perl script: @allfiles = `find / -print`; How can do this in windows: Thanks, Andrew -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>