in reply to random search in file
If the file is little (a few megabytes, but ymmv), just read it into an array, and split the lines as needed. If it's too large for that, try Tie::File, and if it's humongous, it's time for a database. In any of these cases, you can go directly (this is why I prefer the term "direct access" to "random access") to a specific line.
That is, of course, if I'm interpreting your posting correctly: go to line #n and read a specific value.
|
|---|