Help for this page

Select Code to Download


  1. or download this
    map do_something($_), @some_list;
    do_something($_) for @some_list;
    
  2. or download this
    () = do_something ($_) for @some_list;
    
  3. or download this
    map {BLOCK} @some_list;
    
  4. or download this
    () = do {BLOCK} for @some_list;
    
  5. or download this
     
    do {BLOCK} for @some_list;
    
  6. or download this
    for (@some_list) {
        () = do {BLOCK};
    }
    
  7. or download this
    for (@some_list) {
        BLOCK;
    }
    
  8. or download this
     
    user_defined_function {BLOCK} LIST;