Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: A question of style: Composite keys to multiple values (hash)

by tye (Cardinal)
on Aug 06, 2012 at 19:40 UTC ( #985808=note: print w/ replies, xml ) Need Help??


in reply to A question of style: Composite keys to multiple values

$Fields{lc("$ExtA|$ExtB")} = { A => $IntA, B => $IntB };

You might also want a subroutine as interface to your %Fields hash so you aren't writing lc("$ExtA|$ExtB") in more than once place.

- tye        


Comment on Re: A question of style: Composite keys to multiple values (hash)
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2015-07-30 09:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls