Thanks for the courteous reply. I realise my structure may me a little ugly, and I will have a look at the alternate suggestion for when I'm doing something with a little more data.
Data::Dumper sounds like just what I need. As you might be able to tell, my regexes often spit out weird results :-)