in reply to Retrieving a List of directories only
You need something like (untested):
The fact that it takes "ages" is that it's going to traverse your entire file hierarchy. If you have a million files, the sub will be called a million times.find (sub {push @dirs => $File::Find::name if -d});
Abigail
|
|---|