-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

Can anyone explain why I am getting a nil return value from this? I am using 
backquotes to invoke another Ruby interpreter within the existing interpreter 
against a specific source file. Here is the class that I am trying to run 
from the sub-ruby interpreter.

class Useless
 
  def meth
    puts "Useless method in a useless class"
  end
 
end
 
u = Useless.new()
u.meth()

Here is the output when run at the command line:
synack@eugene:~/ruby/rubyide$ ruby -w useless.rb
Useless method in a useless class

Now - when I invoke useless.rb through another class through the use of 
backquotes the result is nil.

class RuntimeInterpreter
 
  def invoke(file)
    `ruby -w #{file} 2>&1`.chomp!
  end
 
end

I'm stumped, anyone know why this is, or how I can fix it?

Thanks in advance for any assistance given.

- -- 
Signed,
Holden Glova
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6TEeVzrxa+Gy/b/4RAsptAJ92i+VaicWRsOeXn/kWagdHXvp4xQCePNZP
cvG+aPM2+CKWiCjgz+dAOd4=
=DWYH
-----END PGP SIGNATURE-----