Help for this page

Select Code to Download


  1. or download this
    my %hash;
    for my $i (0..$#people)
    { $hash{$people[$i]} = $jobs[$i]; }
    
  2. or download this
    my %hash;
    foreach my people (@people)
      { $hash{$people}= shift @jobs; }