http://www.perlmonks.org?node_id=941932


in reply to How do i determine if an XML array element exists in a hash?

If you're going to stick with XML::Simple (and I encourage you to look at other options) then this best practice article might help.