On Monday 14 January 2002 02:42 am, you wrote: > L.S., > I'm looking for a simple way to get all files in a directory and all it's > subdirectories on Win32. > For instance, the directory structure looks like this: > > c:\temp\ > file01.txt > file02.txt > c:\temp\subdir01 > subdirfile01.txt > c:\temp\subdir01\subdir02\ > subdirfile02.txt > > Now, I want to get a list looking something like this: > > c:\temp\file01.txt > c:\temp\file02.txt > c:\temp\subdir01\subdirfile01.txt > c:\temp\subdir01\subdir02\subdirfile02.txt > > How can I do this? I know I can get listings with glob, DIRHANDLE, etc, but > I can't find anything which traverses all file in the underlying subdirs > also. > BTW, it has to work on Win32. > Thanks in advance. > > Harmen Groenwold > [EMAIL PROTECTED]
The File::Find module will do recursive directory listings. As to how, I don't know. Haven't used it yet. Check "perldoc File::Find" Steven -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]