From: Sijo Kg Date: 2008-06-13T18:36:10+09:00 Subject: proc Hi I am learning Ruby and I got the following code from a book. str='#{name} is my name, and #{nation} is my nation' bind=proc do name,nation="Stephan","Ireland" binding end.call s2=eval('"'+str+'"',bind) puts s2 #This output Stephan is my name, and Ireland is my nation I did not understand it totally..Could you please tell, what, bind is doing in s2=eval('"'+str+'"',bind) hanks in advace Sijo -- Posted via http://www.ruby-forum.com/.