Have a look at File::Find
In reply to Re: List all Dirs, subdirs and files by murugu in thread List all Dirs, subdirs and files by Anonymous Monk