From: Jim Freeze Date: 2002-04-15T01:33:52+09:00 Subject: Re: Silence warning On Sun, Apr 14, 2002 at 12:43:24PM +0900, 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:: :~) Hmm. I commonly extract arguments from ARGV using ARGV.shift. Maybe I should consider this 'bad' practice and change my ways. -- Jim Freeze If only I had something clever to say for my comment... ~