From: dblack@... Date: 2006-08-15T21:23:37+09:00 Subject: Re: Newbie at ruby - syntactic sugar for Range / Array Hi -- On Mon, 14 Aug 2006, Logan Capaldo wrote: > > On Aug 12, 2006, at 7:39 PM, dblack@wobblini.net wrote: > >> >> Yes, that's a more cogent explanation, and it accounts for: >> >> a, b = "abc\ndef" => a == "abc\n", b = "def" > > irb(main):047:0> a, b = "abc\ndef" > => ["abc\ndef"] > irb(main):048:0> p a > "abc\ndef" > => nil > irb(main):049:0> p b > nil > => nil > irb(main):050:0> RUBY_VERSION > => "1.8.4" > > Oh I see, it works with *"abc\ndef". Yes -- I forgot the *, which sort of made my point pointless :-) David -- http://www.rubypowerandlight.com => Ruby/Rails training & consultancy ----> SEE SPECIAL DEAL FOR RUBY/RAILS USERS GROUPS! <----- http://dablog.rubypal.com => D[avid ]A[. ]B[lack's][ Web]log http://www.manning.com/black => book, Ruby for Rails http://www.rubycentral.org => Ruby Central, Inc.