From: Logan Capaldo Date: 2006-03-09T06:45:54+09:00 Subject: Re: globals outside of OO scripting On Mar 8, 2006, at 4:18 PM, rtilley wrote: > When writing methods as functions (I know they're methods > pretending to be functions) do you still need to use globals... > like this: > > $global_var > def some_other_function > ... > $global_var > end > > Or, is it OK to use them like this: > No > global_var > def some_other_function > ... > global_var > end > global_var isn't global here.