Q1: Why does Ruby somehow create an array for lines 1 & 2?
Q2: Why does Ruby assign this array to a, but the scalar (20) to b?
Q3: If Ruby's willing to build arrays for lines 1 & 2, why won't it
build a hash for line 3?
Q1: Why does Ruby somehow create an array for lines 1 & 2?
Q2: Why does Ruby assign this array to a, but the scalar (20) to b?
Q3: If Ruby's willing to build arrays for lines 1 & 2, why won't it
build a hash for line 3?
Thanks for your clarification. Now that you explain (a=10, b=20), my
brain said: You read that before, Dummy ... why do you always forget
things?
I had just found a nice tutorial on sorting tables by clicking on
column headings. It included a long line of comma-separated
assignments and I couldn't make sense of it. Now I'm grounded again!