On Sun, Dec 26, 2010 at 10:13 AM, Siddharth Venkatesan
<neotamizhan / gmail.com> wrote:

> All of the three solution taught me something. I think i'll go with
> .map.with_index. That looks concise.

Frankly, I would do something different:

input = "101010,234,876"
# ...
junk, a, b, *remainder = input.split ','

get_something a
get_something b

Kind regards

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/