From: Chris Shea Date: 2008-03-27T01:24:55+09:00 Subject: Re: Simple Question On Mar 26, 10:17 am, pete wrote: > Hi- > > This should be an easy one to answer... > > Is it possible to return an array from a function? > > Example (although a very bad one): > > def test(val1,val2) > myarr = Array.new > myarr = [val1,val2] > return myarr > end > > begin > thisarr = test(val1,val2) > end You have the code. Why not run it? It will answer your question. Chris