From: Michael Thomas Date: 2003-11-17T10:22:57+09:00 Subject: Re: Old style assignment Simon Strandgaard wrote: > On Mon, 10 Nov 2003 08:34:31 -0700, Michael Thomas wrote: > > >>I got the following warning. Can anyone tell me what the new style is? >> TIA!!! >> >>resp, data = h.get('/index.html', nil ) >>net/http: warning: old style assignment found at ./test.rb:6 > > > I cannot provoke the same warning, which version of Ruby do you have? > > server> ruby -v b.rb > ruby 1.8.1 (2003-10-31) [i386-freebsd5.1] > server> cat b.rb > h = [1, 2] > def h.get(a, b); self end > n, m = h.get('/index.html', nil ) > server> > > -- > Simon Strandgaard I should have told you it's 1.8.0 and listed the code: require 'net/http' h = Net::HTTP.new('www.cnn.com', 80) resp, data = h.get('/index.html', nil ) any idea?