in reply to Repeated File Opens Inefficient?

I agree with the assessment of the previous 3 posters, but for a perl function that you can 'point' to the beginning of a file, or to any location in the file for that matter, check out perl's seek function.