in reply to use Safe and CGI;
I suspect it has to do with mod_perl. I tried this one and some of my own scripts which use Safe, and there were troubles when they ran under mod_perl which disappeared when I turned it off with "SetHandler cgi-script" in an .htaccess file.
I would be interested if anyone has found out why mod_perl interferes, and if there is a way to make it work under mod_perl, though.