while (defined(my $subdir = glob 'antarctica/*')) { next unless -d $subdir; chdir $subdir; for ... chdir '../..'; }
opendir my $D, 'antarctica' or die $!; while (defined(my $dir = readdir $D)) { $dir = "antarctica/$dir"; next unless -d $dir; chdir $dir; for ... chdir '..';
In reply to Re: Execute a for loop in many subdirectories
by choroba
in thread Execute a for loop in many subdirectories
by marlowvoltron
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |