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

liat rin_liat at netvision.net.il
Sat Jul 10 09:50:03 PDT 2004

ok, i succeed to store and retrieve the data and also print it as a hash
but i can't move it on the Socket, because it's a reference to a hash used
as a string ...
i need the hash to reach the client side...
i think i miss something here...maybe you will know..
liat koski

-----Original Message-----
From: perl-bounces at perl.org.il [mailto:perl-bounces at perl.org.il]On Behalf Of
Gaal Yahas
Sent: Thursday, July 08, 2004 8:09 PM
To: Perl in Israel
Subject: Re: [Israel.pm] how to read a file to a Hash?

On Thu, Jul 08, 2004 at 08:59:56PM +0300, Gabor Szabo wrote:
> what if someone altered the content of the file to be something like
> system "rm -rf /";
> using Storable for the same purpose is more secure I think.

That's obviously correct in the simple case, but how secure
serialization is ultimately depends on what the remote (or other,
or same-at-a-later-point-in-time, etc.) deserializing process *does*
with the data.

Ran said "read up on serialization", and I completely want to stengthen
his recommendation, but since Storable came up I want to add: please,
please, please use "nstore", and not "store". This should really have
been the default.

Gaal Yahas <gaal at forum2.org>
Perl mailing list
Perl at perl.org.il

More information about the Perl mailing list