F
frankthechicken
I am attempting to either put into an array, or just iterate through
all the names of the directories I have.
I can do this with:-
my @dir_names = grep -d "$path/$_", readdir DIR;
or
opendir(DIR, $path) or die "cant find $path: $!";
while (defined(my $file = readdir(DIR))) {
next if $file =~ /^\.\.?$/;
if (-d "$path$file"){
However there are > 200 directories, and there seems to be a hard
limit of 200 when I try to store or iterate through.
Is there any way round this, and why does it occur?
Many thanks
all the names of the directories I have.
I can do this with:-
my @dir_names = grep -d "$path/$_", readdir DIR;
or
opendir(DIR, $path) or die "cant find $path: $!";
while (defined(my $file = readdir(DIR))) {
next if $file =~ /^\.\.?$/;
if (-d "$path$file"){
However there are > 200 directories, and there seems to be a hard
limit of 200 when I try to store or iterate through.
Is there any way round this, and why does it occur?
Many thanks