You need to write a recursive function to scan your root dir and list all the file and directories and do the same for each one of the sub directories. Once you find the file you are looking for, return.
--Ahmed [EMAIL PROTECTED] | http://arbornet.org/~ahmed On Wed, 5 Dec 2001, Torres, Jose wrote: > Hi, > > How do you traverse Windows directories in Perl? Let's say J:\foo\bar\logs > has a variable number of folders, each of which I want to look into for a > specific file. How would I do this? Thanks for all help. > > > -Jose > > -- > 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]