Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 surveying the Monastery: (12)
As of 2014-09-16 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (47 votes), past polls