On 27.12.2007 23:58, Marc Heiler wrote:
>> if i have $something, is it available to all the objects withtin the program.
> 
> It is really totally global. You can access any global var from any 
> method. :-)

There are however some variables that are gloabal but thread local (all 
globals that are affected by regular expression matching).

> In many cases though, you will find that in "typical" ruby code there is 
> not really the need to use many global variables (but instead local, and 
> @instance vars)

And in fact, globals are often considered bad practice - not just in 
Ruby but more generally. :-)

Kind regards

	robert