in reply to Returning sub directories

What have you tried? Why not use File::Find::Rule, as previously advised here and here?

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.