in reply to How can I assign the elements in an array to only the key values in a hash?

Use a hash slice :
my %hash; @hash{@array} = undef;
  • Comment on Re: How can I assign the elements in an array to only the key values in a hash?
  • Download Code