in reply to Re: Populating a nested hash with itself?
in thread Populating a nested hash with itself?

I'm a little unsure what order things happen in behind the scenes, maybe hash assignment is done one entry at a time

Parens have higher precedence than the assignment operator, so the list (nit: it's a "list", not an "array") is contructed before the assignment is performed. This isn't a hash constructor. There isn't such a thing in Perl. The code creates a list, which is then assigned to the hash.

  • Comment on Re^2: Populating a nested hash with itself?

Replies are listed 'Best First'.
Re^3: Populating a nested hash with itself?
by PhilHibbs (Hermit) on Jul 06, 2005 at 15:03 UTC
    Yes, that's what my inner C programmer told me, but I don't trust Perl not to do some crazy magic (DWIMer?)