From: Robert Klemme Date: 2006-10-28T21:05:21+09:00 Subject: Re: how to import variable from other .rb file? camenix wrote: > Is here anyone who can help me? > 1. eval File.read('config.rb') > > It won't work till use global varibale in > main.rb : > eval File.read('config.rb') > puts $tool_mysql > OR: > main.rb : > tool_mysql='' > eval File.read('config.rb') > puts tool_mysql What exactly does not work? Did you by chance test in IRB? That cannot be trusted with regard to local variables. Please show a bit more (including error message). Kind regards robert