- or download this
my @dirs = ('/path/to/dir1', '/some/other/path/to/dir2', '/dir3');
for my $dir (@dirs) {
...
}
- or download this
my @dirs = map { sprintf 'abc_%03d', $_ } 1 .. 100;
- or download this
for my $i (0 .. $#dirs) {
my $dir = $dirs[$i];
...
}