in reply to inner anonymous hash
Many thanks for all the advice, and the pointers to docs. The Data Structures Cookbook is going to be very useful, and Data::Dumper is a great tool (perl debugger's 'x <data>' is a decent alternative). Special thanks to bobf for intuiting the structure I was groping for, and giving the explicit detail. Much appreciated, thank you all!