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 ( [id://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        

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-03-19 02:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found