uh, the open part of it I was tinkering with, it was always what I had at the top, I changed it to try and avoid the 500's... but it just worked less... :-(
as for CGI.pm, I wanted to get it working before I tried that, but if you guys think it'd help, I can give it a go...