Help for this page

Select Code to Download


  1. or download this
    %hash = map {  join( q{ }, $fname[$_], $lname[$_] ) => $state[$_]  } 0
    + .. $#fname;
    
  2. or download this
    @hash{    map{ join q{ }, $fname[$_], $lname[$_] } 0 .. $#fname    }  
    +=  @state;
    
  3. or download this
    use List::MoreUtils qw( zip pairwise );
    # ...
    %hash = zip    @{[  pairwise { join q( ), $a, $b } @fname, @lname  ]},
    +    @state;
    
  4. or download this
    @hash{@names} = @states;