HI,
I would look at the source for
gnump3d for another example of a mini perl web server. You might also ask Steve Kemp, the author of gnump3d, for some advice. My friend has contacted him about various things regarding the gnump3d code and he has been very helpful. As for webmin being secure, it's secure enough that the sysadmin at my school (and many other admins, so I hear) use it to manage their servers. If you have any inclination to build a webserver from scratch, you can look into the IO::Socket module for sending and recieving test as a webserver would. (This would take a lot of work, but you could design it exactly to your needs). Well, I hope this helps; I know it isn't much to go on. Take care,
Joe