Tuesday, December 11, 2001, 1:09:06 AM, Robert Thompson wrote: > I am using Data:Dumper in a script and am running into a problem with "use >strict" and eval. Basically the conundrum is that the data I will be loading from the >Data::Dumper file is going > to be based off input to the final script, so it may not be the same for each run of >the script. There will be many dumper files that have different variables. I cannot >predeclare them for "use > strict" since I won't know what they are until the eval.
> The only work around is to turn off use strict, but I would like to continue >using it. Is there a way, either with Data:Dumper, or something else to get this to >work? > Here is the snippet of code and some source files, so if one is confused >hopefully this will explain: > eval shift(@wholetemplatefile); # define $datadumperfile. > eval shift(@wholetemplatefile); # define $outfile. > shift(@wholetemplatefile); # Get rid of the divider. > # Get the Data::Dumper information. > open (READ_DD, $datadumperfile); > while(<READ_DD>) { > eval $_; > } > close(READ_DD); it doesn't look like you got any replies. perhaps you could indulge us, try explaining your problem again assuming we don't know what Data::Dumper is. it might help... -- Best regards, Daniel [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]