Hi!

On Fri, Feb 1, 2008 at 10:29 AM, Magicloud Magiclouds
<magicloud.magiclouds / gmail.com> wrote:
> Hello,
>         I mean what kind of variable is $var? What is its 'domain'?
>

Every variable with a $ is a global variable. You can learn more about
variables here:
http://phrogz.net/ProgrammingRuby/tut_classes.html#classesobjectsandvariables

Or as _why puts it at http://poignantguide.net/ruby/chapter-3.html:
"Most variables are rather temporary in nature. Some parts of your
program are like little houses. You walk in and they have their own
variables. In one house, you may have a dad that represents Archie, a
travelling salesman and skeleton collector. In another house, dad
could represent Peter, a lion tamer with a great love for flannel.
Each house has its own meaning for dad.

With global variables, you can be guaranteed that the variable is the
same in every little house. The dollar sign is very appropriate. Every
American home respects the value of the dollar. We're crazy for the
stuff. Try knocking on any door in America and hand them cash. I can
guarantee you won't get the same reaction if you knock on a door and
offer Peter, a lion tamer with a great love for flannel."