Help for this page

Select Code to Download


  1. or download this
    my (%hash, @a, @b);
    %hash = map { ($a[$_], $b[$_]) } 0..$#a;
    
  2. or download this
    my (%hash, @a, @b);
    $hash{shift @a} = shift @b while (@a and @b);