Ooops, I forgot to use plain text when I sent this the first time. Sorry
if this appears twice.

I want read some variable names and values out of a flat (xml) file and
assign them.


I suppose I could write


$s = "$x = 23";
eval $s;


Is this the best way? Is there a better way? In lisp, I would use the
set function instead of the setq function to assign a value to a
variable whose name is stored in a string. Is there a counterpart to the
lisp set function in Perl?


Siegfried


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to