From: Haze Noc Date: 2007-08-19T04:05:47+09:00 Subject: Re: Execute ruby commands in a program John Joyce wrote: > On Aug 18, 2007, at 1:34 PM, Haze Noc wrote: > >> But i didn't really want to do any 1 liners, althouth if i did, >> >> and input was.. >> >> puts 'hello' >> >> How could i return the input? >> -- >> Posted via http://www.ruby-forum.com/. >> > look up eval Thanks, i looked it up and coded something pretty much the same except something like message = eval("#{$1}").. when i print out the return it just print nil -- Posted via http://www.ruby-forum.com/.