in reply to MySQL has gone away

If you post some code, we may be able to help you more. You will also get this error if your mySQL process is killed through any sort of SQL process manager. The server may be running, but if it forcefully terminates your connection, then that may be what causes it.

It's not in essence a perl question, but you may be messing up somewhere slightly in the code. Like I said, if you post it, a wizard may be able to lift the fog.

    --jb