Vishal Chavan wrote:
> Hi All,
>
> I wanted to seek your advice for getting off following warning : "warning: 
> already initialized constant Array_Index"
>
> I have loop where I change the value of a variable. I get this warning, can 
> get off from this? Here's the loop I have
>
> count = 1
> Array_Index = 1
> Actual_array = [20]

In Ruby, local variables begin with lower-case letters. If you use upper-case, 
you have created a constant.

You answer is to use "array_index" instead of "Array_Index", etc.

Cheers,
Dave 

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to