in reply to Populating a Hash: Can someone help me to understand?

Why can't you just use a hash slice? Like this:@hash{@keys} = @values;I imagine this would require that both arrays have equal numbers of values, but then any other kind of hash population would likely assume that as well.
Update: Okay, so I missed the post by japhy. At least merlyn had the common courtesy to explain why he --'d it.

Guildenstern
Negaterd character class uber alles!
  • Comment on (Guildenstern: Hash Slice?) RE: Populating a Hash: Can someone help me to understand?
  • Download Code