Instead of assigning:
$xml_data->{$root}{$table}{NEW2}{KEY} = [$key]
Try pushing:
push @{$xml_data->{$root}{$table}{NEW2}{KEY}}, $key;
There's a few examples of that in the code I posted earlier.
-- Ken
In reply to Re^7: XML File Creation in Perl
by kcott
in thread XML File Creation in Perl
by documents9900
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |