in reply to how to send parsed data to server
Anyway if the other side also speaks Perl you could use Data::Dumper to serialize¹ the data (if it's purely textual)
Otherwise JSON and YAML are widespread options.
Cheers Rolf
( addicted to the Perl Programming Language)
use Data::Dumper; #... $boo = [ 1, [], "abcd", \*foo, {1 => 'a', 023 => 'b', 0x45 => 'c'}, \\"p\q\'r", $foo, $fuz]; # ... $bar = eval(Dumper($boo)); print($@) if $@; print Dumper($boo), Dumper($bar);
use $data=Dumper($boo) on sender side and $bar = eval($data) on receiver side.
|
|---|