Try our HTTP::Server::Simple if you need a simple, plain webserver. It handles everything HTTP related for you with no need to care about sockets, listening or network communication.
I am trying to build my own for a class assignment which is why I sent in the code. Thank you for your responses. Are there any suggestions for improving my code?