From: Phrogz Date: 2007-12-06T07:08:52+09:00 Subject: Re: hash On Dec 5, 2:00 pm, Johnathan Smith wrote: > yer i have been reading many tutorials but was unable to grasp what I > was trying to achieve. > > one for thing i was wondering: > > if i was to extend the some of the information in the .txt file > e.g: > > Tag: ref1 > Type: Book > Author: Smith, J > Publisher: New Books > Chapter: 12 > > could i adapt the code so "any other information" is put into the hash > rather than having set information like author or type? Yes, both of the pieces of code I wrote for you originally handle this case just fine. Please read through the code and understand it. You asked for pseudo-code originally, and I actually gave you fully- functioning code. Now you just need to understand how to use it and its output.