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

Gabor Szabo gabor at pti.co.il
Thu Jul 8 10:59:56 PDT 2004


> use Data::Dumper;

but beware the security implications....

> #read file
> do "C:\\temp\\foo.file";#load the Dumper file to memory

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.


regards
   Gabor



More information about the Perl mailing list