Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Please help, I don't understand, In POE website(http://poe.perl.org/?POE_Cookbook/Web_Server) there is a web server program, but how do I use it?

Do I copy it an save it -say 'webserver.pl'

So then do I just put 'use webserver.pl' at the top of all my script.

Sorry I am still learning PERL.

Thanks..

Replies are listed 'Best First'.
Re: POE web server
by jeffa (Bishop) on Jul 11, 2004 at 15:29 UTC

    Copy the program and save it to a file, webserver.pl is fine. Make the file executable. Make sure you have the priviledge to tie up a port. Run the file. The web server will now be running on port 8088. You will most likely need to access it via the IP address of the computer your mini web server is running on. For example:

    http://127.0.0.1:8088

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)