> On Wed, 05 May 2004 11:38:33 -0500, [EMAIL PROTECTED]
> (Jupiterhost.Net) wrote:
> 
> >Hello list,
> >
> >To day I am trying to figure out the best way to send a hash to a socket 
> >and have the receiver be able to use it as a hash.
> >
> >The best way I've done so far is to Data::Dumper the hash into a string 
> >and send the string, then parse the string back into a hash on the other 
> >end.
> 
> If you are willing to use the Net::EasyTCP module, it uses hashes to
> communicate. I find it one of it's best features.
> 

Storable is another commonly used module for this purpose. 

And naturally I couldn't pass up this opportunity to mention POE,
specifically POE::Filter::Reference, which is one of the few parts of
POE that is standalone, aka you don't need a POE kernel running to use
it. The interface is incredibly simple, and I have used it extensively.
Of course since you are working with sockets, then POE would be great
for that too ;-)....

http://danconia.org


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to