in reply to Re: Ill-formed hash of hash - to convert text to xml
in thread Ill-formed hash of hash - to convert text to xml
Hi,
I made some changes as per my understanding, but i couldn't make changes in the code to reflect as per requirement.
... if(exists($final->{$x[$i]})){ print "second\n"; $final->{$x[$i]} = ($final->{$x[$i]}, $f); #### i need to push th +e $f into $final. } ...
Current output:
$VAR1 = \{ 'a' => { 'b' => 'abc' } };
Expected Output:
$VAR1 = \{ 'a' => { 'b' => 'abc' }, { 'c' => 'xyz' } };
|
|---|