From: Jesse Jurman Date: 2010-04-10T11:48:50+09:00 Subject: Re: global variable in ruby Amishera Amishera wrote: > Trying to use some global variable > > $buffer = Array.new While global variables are really nice, most programmers try not to use them, as they cause a lot of errors in the long end, dealing with other programs or add-ons. I try not to use Global Variables in my programs, but when I do need to, I name them so specifically, that they can not be confused with another program's global variables. i.e. $program_name_buffer00 = Array.new -- Posted via http://www.ruby-forum.com/.