in reply to Opening files to write in browser returns Permission denied

I often end my die messages with "...\n\t$!\n\t" - that is: Newline + Tab at the end. If the message does NOT end with a newline (but e.g. with a Tab), die adds file name and line number of the die statement.