Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by NetWallah (Canon)
on Nov 23, 2011 at 23:27 UTC ( [id://939769]=note: print w/replies, xml ) Need Help??


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."

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://939769]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-03-28 08:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found