Thanks everyone for your help. Its a small script and im apart from the 
above im not using the data for anything else so far now ill proceed 
with hashes and arrays though ill use the idea of adding to a new hash 
and checking if theres already a key in there before creating a new one.

However i do like to challenge myself and classes and structs in ruby 
are still a little foreign so ill spend some time after completing this 
little project to switch to using classes.

Thanks again.


-- 
Posted via http://www.ruby-forum.com/.