Help for this page

Select Code to Download


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