From: Dirk Einecke Date: 2004-02-16T07:19:52+09:00 Subject: problem with variables Hi. I've a problem with variables. I define a global variable outside a method and then I use this variable in a method. And thats my problem. I can print the value of the variable but in the line with the eval() the place holder (#{temp}) is not replaced and the output is empty. But why. Can anybody help me? #!/usr/bin/ruby $temp = "Hallo" def test() puts $temp # -> Hallo ... all is okay test = "#{temp} World" puts eval( '"' + test + '"' ) # -> ... nothing ... but why? end print "Content-type: text/html\n\n" print test() bye Dirk Einecke