...Unless there is a way to access local variables given their
name as a String that I don't know of (which is not unlikely at all
since I'm kinda new to this too ), you're still stuck.
If they can be made instance variables then this works:
$SAFE=3
@name1 = 99
instance_variable_get("@name1") #=>99
Stephen