It worked beautifully, thanks Robert. I'm also going to take a look at popen, I say it used in another program and it looks promising. Kind regards, Nick Robert Klemme wrote: > > try this: > > sql = `perl vendor\\sql\\sql.pl "#{@question.sql}"` > > Regards > > robert -- Posted via http://www.ruby-forum.com/.