ab = $a . "_" . $b; xy = $x . "_" . $y; unset @o; @o[ab]["foo"] = xy; for (k, v in @o) { print "k is " . k . " v is "; dump v; }