From: Robert Thompson <[EMAIL PROTECTED]> > The more I thought about it, Data::Dumper has little to do with the > exact problem I am having, but the way it works constricts me to > using particular steps in my script. Data::Dumper is a utility to > build simple text based databases. Basically what it > does is take input data, escapes anything that is meaningful to perl > ($,@,etc), and puts it into "variable1 = data1; variable2 = data2; > etc" format, where you set up the variable name (and the data). You > can then write this information to a file for sto rage. > Then you have Perl read in this file, and eval each line to get your > data back into your script.
As I said in the first mail DO NOT DO THIS! Use an array! You can dump an array with Data::Dumper easily. And then as you eval() it you don't have any problems with onknown variables. You just get an array @variable and instead of $variable1, $variable2 use $variable[1], $variable[2]. Or store all the data in a hash. That can be dumped in one step just like the array and allows you to use names instead of indices. Jenda =========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ========== There is a reason for living. There must be. I've seen it somewhere. It's just that in the mess on my table ... and in my brain. I can't find it. --- me -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]