Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Ill-formed hash of hash - to convert text to xml

by AnomalousMonk (Archbishop)
on Jul 21, 2015 at 06:16 UTC ( [id://1135537]=note: print w/replies, xml ) Need Help??


in reply to Ill-formed hash of hash - to convert text to xml

You have re-posted an apparent exact duplicate of the OP of this thread. Please do not re-post such duplicates. Please respond in this thread as to how the advice offered here has or has not helped you, and as to specific new difficulties you may be facing.


Give a man a fish:  <%-(-(-(-<

Replies are listed 'Best First'.
Re^2: Ill-formed hash of hash - to convert text to xml
by themonk (Acolyte) on Jul 21, 2015 at 13:53 UTC

    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' } };

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1135537]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-18 14:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found