Richard Gordon wrote: > > After changing to *F, it's still not working right, but now it's > returning line 0 instead of 701, so I guess we're making "progress?" > Perhaps I'm just not thinking about this whole thing correctly- given > that all I want to do is extract a given line of text from a file based > on a key and print the key and the value, would I be better off just > using a normal hash? I guess what I am trying to ask if DB_File expects > you to tell it what line number you want, what's the most efficient way > to figure out which line that is and (this is where I'm getting confused) > if you have to read the file using another method anyway in order to get > that line number, what is the point of using DB_File to extract the line? Where did you get the idea that you need the line number anyway? DB_File is just a way of tying a hash to a file. You get values out a tied hash the same way you get them out of a regular hash: $foo{key}. Ronald ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch