Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by tye (Sage)
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 having an uproarious good time at the Monastery: (4)
As of 2016-02-08 02:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (266 votes), past polls