Although I am a relative newby here, I thought I would throw my
2 cents in.
Perusing the recently released "Programming Perl" (3rd Edition),
on page 77 I find something that might be of use:
The construct of an anonymous hash ref like ${$record_id}.
Would this be the kind of thing you are doing?