"Shishir K. Singh" wrote: > I am already doing the recursive look up and it works fine. However, if it's a long > hieararchy, it, it takes up some to traverse the full tree. I was curious to know if > any module exist so that I can compare the speeds. If the performance is better, I > can discard my piece. > > -----Original Message----- > From: Dan Muey [mailto:[EMAIL PROTECTED] > > http://search.cpan.org is your friend > > use File::Slurp; > @files_and_directories = read_dir("/dir"); > >
Yes. The module is File::Find. You should search for the Find.pm file in a File directory in one of your lib directories. You can then test your script against that benchmark to evaluate it. Since Perl is an open-source language, you can also open the file up in a text or code editor, and study the way it executes its work. This may give you some insight into the recursive process. Since recursion most closely reflect the nature of the veast being processed, it is very likely that the module performs its work through recursion. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]