From: JustAGuest Date: 2006-01-29T07:10:36+09:00 Subject: Re: Accessing global variable from a function Vitaly Belman wrote: > I'd like to access a global variable from within a function, without > passing it as paramater. How do I do it? Global variables start with a "$" so just write def func puts $i end $i = 5 func -- Posted via http://www.ruby-forum.com/.