Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Think about Loose Coupling
 
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: (13)
As of 2014-04-21 14:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (495 votes), past polls