From: "Peña, Botp" Date: 2005-07-29T20:55:11+09:00 Subject: Re: [newbie] make local var visible Stefan Lang [mailto:langstefan@gmx.at] wrote: #> Hi Brian/Cristi/Wannes/Kroeger/Kero, and others, #> #> Yes. I've done what you have all suggested. Thank you. #> But I was hoping for something "cleaner". Sorry. #> #> Can we request RCR for this? # #IMHO not necessary. Ruby already has what you want. You #want a closure. # #foo=["a","b","c"] # #mfoo = lambda do #� � foo.each do |f| #� � � � p f #� � end #end # #mfoo.call # Yes, Stefan. Thank you. Lambda and proc have been suggested. But i still want something cleaner. Can we make something like proc but do it inside out? We do not adjust the methods but the vars, that is. I am just trying to bridge the gap of bash/perl/sh and ruby. I do not think presenting lambda is welcoming to my non-programmer peers. (Note, as stated in my op, i am converting sh/perl/ scripts..) thanks and kind regards -botp #-- #Stefan #