Eval'ing the response is dangerous. No, it's suicidal. Wait - I'm going with insanely suicidal. Anyway, don't do that. Nog Dog's second idea was better. Rethink the methodology.
One way to do it would be to parse the document looking for lines in the form of:
$ word = " value " ;
Assign value to $word after you've determined that it's an innocuous action.
Or you could look into changing the format of the text file to be better suited to communicating name value pairs. Honestly, it sounds like XML is better suited for this job.