in reply to Re^2: Create a html page on fly
in thread Create a html page on fly

It could be that you are creating the HTML files in an area where the server expects to find CGI scripts, so it's trying to run them as scripts and failing. Again, your web server logs should give you more information behind the 500 error.

Aaron B.
My Woefully Neglected Blog, where I occasionally mention Perl.