Can we assume that your script is hanging on an
open? It would clarify things if you could post your code. It would also help in trying to reproduce this if you state which operating system you are running on.
You probably have a
die statement after the
open with "cannot open file", please also display $!.
Update: Tried appending to a file opened by swriter on Windows, and it worked fine. Swriter did not appear to lock the file.