Help for this page

Select Code to Download


  1. or download this
    @arr1 = map { push @arr1, ($_+ 2) } @data;
    
  2. or download this
    sub mapsub {
        my @arr;
        
        @arr = map { ($_ + 2) } @data;
    }