> >>/home/dcorbin/projects/homenet/tools/testall.rb:41: warning: already
> >>initialized constant ARGV
>
> One of the modules I'm using has an END block that uses ARGV.  The
> only way I know to control this behavior is to set ARGV manually,
> before the I 'require' the module in question.

Can you post the code snippet in question?

puts "foobar " + ARGV.join(' ')
END { puts "baz " + ARGV.join(' ') }

> ruby -w foo.rb testing argv
foobar testing argv
baz testing argv

It sounds like an END block is doing something like:

ARGV = []  # Bad, or
ARGV = Array.new()

before ARGV is getting used.  Why is that needed at all?  -sc

-- 
Sean Chittenden