Help for this page

Select Code to Download


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