Help for this page

Select Code to Download


  1. or download this
    @keys = pairwise {return "$a $b"} @fname, @lname;
    @hash{@keys} = @state;
    
  2. or download this
    my $iter = each_array @fname, @lname, @state;
    while( ($firstName, $lastName, $state) = $iter->() ) 
    { 
       $hash{"$firstName $lastName"} = $state;
    }