which is why $fh is opened for writing only
In reply to Re^2: Read from temp file by Thelonius in thread Read from temp file by ITmajor