- or download this
my $dir = '.'
my @list = glob($dir . '/*'); # <- amended per merlyn's response
- or download this
my $dir = '.';
opendir(my $dh, $dir) or die "Could not open $dir because $!\n;
@list = readdir($dh);
closedir($dh);
- or download this
@list = glob($dir .'/A*');
- or download this
my $dir = '.';
opendir(my $dh, $dir) or die "Could not open $dir because $!\n;
...
# do stuff to $_
}
closedir($dh);