in reply to Assigning values to undef hash reference keys two or more at a time

As mentioned above, take a look at hash Slices.
  • Comment on Re: Assigning values to undef hash reference keys two or more at a time