in reply to Listening on an HTTP port

I'm kinda confused on this. http generally is on port 80, do you want to run a script that sits on the port and listens to requests, with no web server running? That's pretty easy. perldoc IO::Socket::INET, part of standard libs, set args to new() to taste.Example:

use IO::Socket; my $listen_socket = IO::Socket::INET->new(LocalPort => 80, Listen => 10, Proto => 'tcp', Reuse => 1); while (my $connection=$listen_socket->accept) { #do whatever you want. }
But only one program can sit on a port at a time (I think), so if you're running a web server and want to check for connects, it gets a lil more complicated. Easiest thing to do for that would be to check on your apache (or whatever) access_log for when connects come in, or something similar.

Trinary