Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Converting HOH to a XML not working

by clueless newbie (Chaplain)
on Mar 14, 2014 at 18:35 UTC ( #1078380=note: print w/replies, xml ) Need Help??


in reply to Converting HOH to a XML not working

If you're doing this in the context to your earlier "How to return Hashref from one script to another script?", perhaps you should look at serialization. For example:

#!/usr/bin/perl # parent use Data::Dumper; use strict; use warnings; my $stored=`perl child.pl`; my $data; eval $stored; warn Data::Dumper->Dump([\$data],[qw(*data)]);
#!/usr/bin/perl # child use Data::Dumper; use strict; use warnings; my $data={aref=>[qw(a b c d)],href=>{}}; print Data::Dumper->Dump([\$data],[qw(*data)]);

Replies are listed 'Best First'.
Re^2: Converting HOH to a XML not working
by sriram83.life (Acolyte) on Mar 14, 2014 at 18:44 UTC
    Thanks clueless newbie.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2018-12-17 08:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many stories does it take before you've heard them all?







    Results (72 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!