On Tue, 25 Mar 2003 [EMAIL PROTECTED] wrote: > Does anyone know how to read a directory in perl, and make a list of all the > files therein, and also of any sub directories and their files?
To get a list of files in a directory (not recursive) perldoc -f glob perldoc File::Glob my @files_list = <$your_dir/*>; You can also go the opendir, readdir way perldoc -f opendir perldoc -f readdir For a recursive listing check out File::Find, is a part of the standard distribution perldoc File::Find -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]