Hi,

thanks for the awesome response I appreciate it

however, i think i may have misunderstood what i was trying to achieve.

what i want to do is to create an empty hash every time it encounters a 
Tag
line, and if it encounters any other field, put the field and the 
related
value in the hash, using the field name (e.g Type and Author) as the key

im not sure if any of the help you provived achieves this but any help 
on this matter would be greatly appreciated

many thanks

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