LogicalChaos has asked for the wisdom of the Perl Monks concerning the following question:
As the title implies, I would like to have a go at replicating objects across a socket. The server daemon should not be required to know anything about the object being sent, except that it implements certain methods.
After nosing around CPAN and here, my first thought is to use Data::Dumper, and just print the output across the socket. The server would then parse the data received to grab the package name, require it, and then eval the data received to reconstruct the object.
I'm hoping for conformation that this is a reasonable way to accomplish what I desire, or "This module does exactly what you want", or use these modules in this way, or...
Thanks,
LogicalChaos
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Replicating objects across a socket
by Fletch (Bishop) on Apr 03, 2002 at 19:46 UTC | |
|
Re: Replicating objects across a socket
by perrin (Chancellor) on Apr 03, 2002 at 19:54 UTC | |
|
Re: Replicating objects across a socket
by rjray (Chaplain) on Apr 04, 2002 at 01:09 UTC | |
|
Re: Replicating objects across a socket
by kappa (Chaplain) on Apr 04, 2002 at 14:08 UTC |