Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2018-07-16 07:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (333 votes). Check out past polls.

    Notices?