in reply to perl script to print just directory names
Find::File::Rule can assist with this. It is recursive:
my $base_dir = 'C:\Input';
my @dirs = File::Find::Rule->directory->in( $base_dir );
print $_, "\n" for @dirs;
Results (296 votes). Check out past polls.