http://qs321.pair.com?node_id=1097120


in reply to Help with Parsing XML output

Obligatory "use XML::Twig" post from me.

For a quick and dirty fix for your problem, you could try

if (ref($var) eq 'ARRAY') { ... } elsif (ref($var) eq 'HASH') { ... } else { ... die "Var is of " . ref($var) . " type and will not be processed"; }