And finally, a small quest for Perl wisdom: what's a portable way to find out if the user has left the "site" or closed the browser window? So far, I've told users of these little applications to hit ^C when done, but that's not pretty.

Idle musings... Doesn't pretty much every browser now support Connection: Keep-Alive? Is there a way to consistently induce this behavior and, if so, couldn't you then just watch for the socket closing in the HTTP::Daemon server and assume that means the window was closed?

Black flowers blossom
Fearless on my breath

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

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