Help for this page

Select Code to Download


  1. or download this
    my %hash;
    @hash{@people} = @jobs;
    
  2. or download this
    my %hash = map { $people[$_] => $jobs[$_] } 0 .. $#people;
    
  3. or download this
    use Functional;
    my %hash = @{ zip(\@people, \@jobs) };