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 |