in reply to Re: Convering Perl socket program into CGI.
in thread Convering Perl socket program into CGI.

Why are you using the weird globbing construct:

while (defined ($buf = <"$message">)) {

Granted, it could act as a cool filter for weird hostnames that likely won't respond to pings, but I think this should be explained...