At 09:30 PM 5/2/2001 +0400, Ilya Martynov wrote:

>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.

Right, but I want it to work if you don't...

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to