in reply to Re^6: XML File Creation in Perl
in thread XML File Creation in Perl

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