in reply to parsing complex xml structure with xml::simple

You can use ref to find out what kind of reference a scalar holds.

But I strongly suspect that what you really need here is XML::Simple's ForceArray option.

--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

  • Comment on Re: parsing complex xml structure with xml::simple