http://www.perlmonks.org?node_id=947279


in reply to Re: Beginners guide to File::Find
in thread Beginners guide to File::Find

Instead of finding files between min and max depth, how do I find all sub directories (except . and ..) between min and max depth?

Replies are listed 'Best First'.
Re^3: Beginners guide to File::Find
by Anonymous Monk on Jan 11, 2012 at 10:18 UTC

    See File::Find::Rule, the synopsis has an example

    use File::Find::Rule; # find all the subdirectories of a given directory my @subdirs = File::Find::Rule->directory->in( $directory );

    For future reference, new questions go in Seekers Of Perl Wisdom