Help for this page

Select Code to Download


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