in reply to Where's the leak?

Also you may want to $read->close; after you are done with the file each time.

-Waswas