in reply to Looping through a hash reference is creating a key...?

Perl does something called autovivication. How you get around it is exactly what you've done here using the 'exists' test. Autovivication can be your friend at times, but it can really bite you too.
  • Comment on Re: Looping through a hash reference is creating a key...?