From: Hal Fulton Date: 2004-08-21T03:20:54+09:00 Subject: Re: newbie programming question: DiesIrae wrote: > Hello, > > I am trying to pass a variable to the backticks `` function, but it is > always interpreted as a string. How can I get it to read the value, > instead? And once I do that, how can I get the results into an array? > Here's the example code (this probably looks horribly wrong to some > of you...): > command[0]=`ping host` Do this instead: command[0]=`ping #{host}` The #{} syntax can be used to interpose not just a variable, but any arbitrary expression. Solvet saeclum in favilla... Hal