[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Omaha.pm] Pulling in a hash via "exec"...FAIL



On Aug 6, 2008, at 5:08 PM, Dan Linder wrote:
I've got one program that generates a hash and then uses Data::Dump to write this structure to a text file:
printf FILE Data::Dumper->Dump(\%fields],['fields']);

Data::Dump isn't meant to be used like that. Use Storable instead:

http://search.cpan.org/~ams/Storable-2.18/Storable.pm#EXAMPLES

Much easier to use, and it works.  :)

j