From: highlyjhi Date: 2007-05-26T12:26:18+09:00 Subject: Re: Global Array? On May 25, 2007, at 11:11 PM, Sy Ys wrote: > I've got a class which calls itself several times (recursive). While > this class is calling itself, I want it to be appending a global > array ( > << ). I can't figure out how to make the array itself global, so > for now > each time the class calls itself, it creates the array anew again. > Help? > > -- > Posted via http://www.ruby-forum.com/. > Are you putting a dollar sign ($) in front of the variable's name? ex: $global_array