Help for this page

Select Code to Download


  1. or download this
    # Preserves any pre-existing anonymous hashref.
    @hr = map{ $hr[$_]->{k} = $val[$_] } 0 .. $#hr;
    
  2. or download this
    # Preserves any pre-existing anonymous hashref.
    $hr[$_]->{k} = $val[$_] for 0 .. $hr;