[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']);

On Wed, Aug 6, 2008 at 5:22 PM, Jay Hannah <jay@jays.net> wrote:
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.  :)

When I'm able to re-write the entire system I'll look at that. :-)

For now I'm saddled with making the "eval" work ... unless I can figure out the magic of the "use vars" piece I'll have to manually touch up the first line of the output file.

Thanks,

Dan

--
"Quis custodiet ipsos custodes?" (Who can watch the watchmen?) -- from the Satires of Juvenal
"I do not fear computers, I fear the lack of them." -- Isaac Asimov (Author)
** *** ***** ******* *********** *************