in reply to search for folder
Hello Anonymous Monk,
Why to write your own program when there are modules that do exactly what you want to do and most likely they do a better job?
For example: File::Find or File::Find::Rule.
Hope this helps, BR.