in reply to Re: Howto load list context into hash of hashes?
in thread Howto load list context into hash of hashes?

Responding to your second point:
"REPO_BRANCHES" is NOT a hard-coded value. It is a "simple identifier", and would normally be quoted.

However (see perldata), inside curlies, perl will auto-quote it, so you do not need to. Most programmers do not use quotes when accessing hash values, because it is not necessary and adds keystrokes without adding value.

            "XML is like violence: if it doesn't solve your problem, use more."

  • Comment on Re^2: Howto load list context into hash of hashes?

Replies are listed 'Best First'.
Re^3: Howto load list context into hash of hashes?
by TJPride (Pilgrim) on Nov 24, 2011 at 08:44 UTC
    By "hard-coded" I mean a manually-entered value as opposed to a variable. What you probably mean by "simple identifier". And yes, Perl will auto-quote it, but my point is that in this particular context it can be ambiguous to someone reading the code, so in my opinion it's not good practice to leave the quotes out. We can agree to disagree on that one.