in reply to Out of Memory after file open for append
</code> I added the filename to the error message along with '$!' which is the OS level error. It can be very helpful for tracking down why your open failed.open(FILE,">>$write_file") or die "file '$write_file' could not be opened for update: $!";
See open for more details.
Update: lemming points out that $write_file might already contain the '>>', i.e. $write_file = '>>/my/filename' In that case, adding an extra '>>' would be superfluous and incorrect.... w/o more code, we can't tell one way or the other.
-Blake
|
|---|