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