Help for this page

Select Code to Download


  1. or download this
    while (my $key = shift @keys and my $value = shift @values) {
      $hash{$key} = $value;
    }
    
  2. or download this
    while (defined (my $key = shift @keys) and defined(my $value = shift @
    +values)) {
      $hash{$key} = $value;
    }
    
  3. or download this
    while (@keys and @values) {
      $hash{shift @keys} = shift @values;
    }