[Israel.pm] how to read a file to a Hash?

Ran Eilam eilara at cortext.co.il
Thu Jul 8 08:28:53 PDT 2004

> i'm working on a client-server project. i need to read data from a
> File to the socket (on the server side) that need to be read to hash
> variable (on the client side) my problem is how to save the data in
> the file? how to organized it?

If I understand you correctly, you want to move Perl data between 2
machines, both running Perl.

Read up on serialization. The documentation for Data::Dumper will show
you how to write Perl data to a string, and how to re-create it back


More information about the Perl mailing list