DS> At 12:54 PM 5/2/2001 -0400, John Porter wrote:
>> David Grove wrote:
>> > distributed objects,
>>
>> I don't recall discussion of this wrt perl6, frankly.
DS> I've mumbled about it on and off. I'd like to be able to do:
DS> $foo = new Bar;
DS> print SOCKET serialze($foo);
DS> and on the other end do:
DS> $foo = unserialize(<SOCKET>);
DS> $foo->bar();
You can serialize/deserilize object with Storable
$foo = new Bar
store_fd $foo, \*SOCKET;
and on the other end
$foo = retrieve_fd \*SOCKET;
$foo->bar;
It will work if you have Bar module on both ends.
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
| Ilya Martynov (http://martynov.org/) |
| GnuPG 1024D/323BDEE6 D7F7 561E 4C1D 8A15 8E80 E4AE BE1A 53EB 323B DEE6 |
| AGAVA Software Company (http://www.agava.com/) |
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-