From: "Carlos J. Hernandez" Date: 2008-01-12T04:10:09+09:00 Subject: Re: Need command line to run a file 4 times jacster: You must be defining (assigning) the constant at one point in the program flow, and then defining again. If the constant is in a loop, take it out. I typically define all my constants within the first few lines at the top of the file right after the require statements. Ruby only warns that you're using a constant as a variable. If you mean to use it as a variable, don't use capital letters. -Carlos On Sat, 12 Jan 2008 03:03:50 +0900, "jackster the jackle" said: > My script is doing exactly what I want it to do now...but I see some > warnings in STDOUT: > > warning: already initialized contstant > > I think it's reporting this because ruby is looping through the file but > other than that, it's working fine. > > Is there someway to fix this or at least prevent the warning from going > to the console? > > thanks again > > jackster.mobi > -- > Posted via http://www.ruby-forum.com/. >