- or download this
chomp(@exeDllLines);
my @dllarray = grep { /\.(?:dll|exe)$/i } @exeDllLines;
- or download this
chomp(@exeDllLines);
...
foreach (@exeDllLines) {
push @dllarray, $_ if /\.(?:dll|exe)$/i;
}
- or download this
chomp(@exeDllLines);
my @dllarray;
push @dllarray, grep { /\.exe$/i } @exeDllLines;
push @dllarray, map { "[$_]"} grep { /\.dll$/i } @exeDllLines;
- or download this
chomp(@exeDllLines);
...
/\.dll$/ && do { push @dllarray, "[$_]"; next; };
/\.exe$/ && do { push @dllarray, $_ ; next; };
}