Thanks Jayanth. Ill have to read up more about sets then. They look like 
they could come in handy for a few other things i need to write.

Many thanks

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