note
jellisii2
Obligatory "use [mod://XML::Twig]" post from me.
</p><p>
For a quick and dirty fix for your problem, you could try
<c>
if (ref($var) eq 'ARRAY') {
...
} elsif (ref($var) eq 'HASH') {
...
} else {
...
die "Var is of " . ref($var) . " type and will not be processed";
}
</c>
1097061
1097061