From: Koos Brandt Date: 2007-10-19T23:45:45+09:00 Subject: Re: Eval alternative to execute string Rolando Abarca wrote: > On Oct 19, 2007, at 11:16 AM, Koos Brandt wrote: > >> What I actually want to do is: ruby �big piece of text� and that >> should >> not be part of my current environment if you understand what I mean. > > If you want nothing to do with the external ruby file, maybe you > should do something like this: > > system("ruby #{the_external_file}") > > regards, OK, that works and thanks a lot. But I actually still have the program in memory, ie string object. I can most certaily write it to a tempfile and do the above, but I would have like system("ruby #{contents}") or system("irb #{contents}") Tried both, and they just go into a long process! -- Posted via http://www.ruby-forum.com/.