in reply to xml::simple foreach

You are missing one of the huge advantages of XML::Simple. The fact that it returns a hash.

If you want to see what's really going on, try this.

use Data::Dumper; print Dumper ($xml);

This will show you exactly how it's stored based on the options you gave it. Always do this if you run into issues. It clears things up in a hurry.

--
I used to drive a Heisenbergmobile, but every time I looked at the speedometer, I got lost.