From: Daniel Berger Date: 2006-02-12T04:58:24+09:00 Subject: Re: Determining system information John Maclean wrote: > Chaps, > > Running ENV in irb displays the system's environment. I've tried the > same thing in a script. What's missing here? > > #!/usr/bin/ruby -w > stuff = %w{ENV RUBY_VERSION RUBY_RELEASE_DATE RUBY_PLATFORM VERSION} > stuff.each{|foo| foo} > > -- > John Maclean > MSc (DIC) > 07739 171 531 require "rbconfig" include Config CONFIG.sort.each{ |k,v| puts "#{k} => #{v}" } Regards, Dan