$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
In reply to Re: A question of style: Composite keys to multiple values (hash)
by tye
in thread A question of style: Composite keys to multiple values
by Voronich
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |