Hi,
I got the same message and I was trying to debug this problem.
Originally, if I opened a file, I used the following code:
$fp = ($filename, "w+") || die ("Could not open file!");
This will produce the error as mentioned in this thread.
I just took out the die statement and it works:
$fp = ($filename, "w+");
you should probably code an if and else statement to capture the open error. Hope this helps!