Hi,
Try changing
toif (exists $main_target->{target}->{sub_target})
if (exists $main_target->{$target}->{sub_target}) # ^
Hope this helps!
In reply to Re: I get "not a HASH reference" when parsing an XML file
by 1nickt
in thread I get "not a HASH reference" when parsing an XML file
by xuo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |