A maintainable and easily testable way would be to use JSON::Any on both ends and then transfer the data as JSON structures.
A potentially faster, but not easily inspectable way would be to use Storable, which uses a format more native to Perl and a binary storage format and hence could be quicker to transfer. Also, Storable can (try to) transfer code references, objects and closures to the other end.
In reply to Re: Transfer a hash using client and server in perl
by Corion
in thread Transfer a hash using client and server in perl
by abubacker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |