use warnings; use strict; use autodie; my $dir = '/tmp'; opendir my ($dh), $dir; my @dirs = grep { -d "$dir/$_" } readdir $dh; print scalar(@dirs), "\n";
In reply to Re: Get folders in a directory with 20k directories?
by toolic
in thread Get folders in a directory with 20k directories?
by perlpreben
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |