From: David Corbin Date: 2002-04-14T21:10:46+09:00 Subject: Re: Silence warning Sean Chittenden wrote: >>/home/dcorbin/projects/homenet/tools/testall.rb:41: warning: already >>initialized constant ARGV >> >>I'm getting this, because I'm assign ARGV=[]. Is there anyway to do >>this, and not get the warning? Some trickery of some sort? Thanks. >> > >ARGV is a global variable that is prepopulated for you with the >command line arguments... why would you want to change the contents >of that variable? I personally treat ARGV as a readonly >variable... and now that I think about it, it'd be really cool if a >security level of 1 or greater made that read only. ::hint hint:: :~) >-sc > 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.