Help for this page

Select Code to Download


  1. or download this
    my @names = map {                    # 1, 3
        $i > 6                           # 2, 4
           ? push(@names,$input2arr[$i]) # 1, 2
           : $i++;                       # 2
    } @input2arr;
    
  2. or download this
    @x = map {
      $r = push(@x, $_);
    ...
    a,b,c,d
    a,b,c,d,e
    1,2,3,4,5