Siep Korteling wrote: (...) > [{1=>3},{2=>4},{3=>2},{4=>1}] > Can adapt your code to do the same? Sorry. This should read {1=>3, 2=>4, 3=>2, 4=>1} Can you adapt your code to do the same? Maybe you'd have to read up on hashes before you planned to. I'm learning the same way as you do. Getting some grip on Fixnum, String, Array, Hash, File and Date enabled me to write better scripts then I did with any other scripting language. Regards, Siep -- Posted via http://www.ruby-forum.com/.