- or download this
my @list = map BLOCK LIST;
- or download this
my @list;
for (LIST) {
push @list, do BLOCK;
}
- or download this
my @files =
map { "$self->{update_dir}/$_" }
sort { $a <=> $b }
grep { /^\d+$/ && $_ <= $id }
readdir $dir;
- or download this
my @files;
for (
...
) {
push @files, "$self->{update_dir}/$_";
}
- or download this
my @files =
map { "$self->{update_dir}/$_" }
sort { $a <=> $b }
grep { /^\d+$/ && $_ <= $id }
readdir $dir;
- or download this
my @temp;
@temp = readdir $dir;
...
@temp = sort { $a <=> $b } @temp;
@temp = map { "$self->{update_dir}/$_" } @temp;
my @files = @temp;