From: Michael Campbell Date: 2003-12-08T04:03:39+09:00 Subject: Re: newbie question David A. Black wrote: > On Mon, 8 Dec 2003, nainar wrote: >> I am beginning to understand this: >> If you assign to the variable within the function the original is NOT >> modified. >> if you modify the variable within the function then the original is modified. That's basically it. >> v=99 >> def f1(n); n=n*n ; end >> f1(v) > > >> it will not work. It will, as David said, but in your case, "v" is not changed (which is what I think you were wondering about), where "n" is. __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/