From: Richard Date: 2007-01-26T04:25:06+09:00 Subject: Re: Problem using back-ticks + eval Hi Erik, I was working in making "show" simpler, but I couldn't come up with that last step. Beautiful. Many thanks, Richard On Jan 25, 1:44 pm, Eric Hodel wrote: > On Jan 25, 2007, at 10:40, Richard wrote: > > > I'm trying to demo how Ruby handles various argument formats. > > > For example, I write the statement: > > show %@`ruby DisplayArgs.rb Arg1 Arg2`@ > > > and I get the output: > > `ruby DisplayArgs.rb Arg1 Arg2` > > => > > Arg[1]: "Arg1" > > Arg[2]: "Arg2" > > > I'd like avoid having the back-ticks appear in the output.def show(command) > puts command > puts '=>' > puts `#{command}` > end > > -- > Eric Hodel - drbr...@segment7.net -http://blog.segment7.net > > I LIT YOUR GEM ON FIRE!