in reply to XML::Simple => XMLout()

XML::Simple has lots of options to change how it processes, I think the one you want is ForceArray

                - Ant
                - Some of my best work - (1 2 3)