From: Xavier Noria Date: 2010-07-13T22:18:27+09:00 Subject: Re: Shouldn't this be called a global constant? On Tue, Jul 13, 2010 at 3:08 PM, Abder-Rahman Ali wrote: > Thanks for your reply. So, is your point here, that anything starting > with a $ is a global variable, regardless uppercase or lowercase > letters. Correct. > I asked my question since I know that of Rub's convention is that > constants have to begin with an uppercase letter. That's right. Point is sigils ($, @, @@), are considered to be part of variable names. That's why the rule is worded that way. Now that we are on it, another tidbit is that Ruby actually lets you change the value a constant holds. That's a rite of passage, embrace contradictions! :). You get a warning though.