Hey Juerd! I recently posted a module that encapsulates this exact concept - we really had the exact same idea here, see A different approach to generating a GUI for the post, or ServerApp for my code (which is still young and wants for features) It let's you forget about all the "server stuff" and just map your functions to the requesting urls, you can define a match by regex, string or a more complicated function that decides... see the forthcoming documentation, or the code itself for now.

In reply to Re: GUI with HTTP::Daemon by qbxk
in thread GUI with HTTP::Daemon by Juerd

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":